Giter Club home page Giter Club logo

Comments (6)

mxyng avatar mxyng commented on June 30, 2024

I'm not able to reproduce this using llama2 and mistral with setting seed and temperature through both the API and the Modelfile.

What version of ollama (ollama -v) are you using? Can you also provide your Modelfile?

from ollama.

Fei-Wang avatar Fei-Wang commented on June 30, 2024

I'm not able to reproduce this using llama2 and mistral with setting seed and temperature through both the API and the Modelfile.

What version of ollama (ollama -v) are you using? Can you also provide your Modelfile?

ollama -v
ollama version is 0.1.20

cat Modelfile

FROM ./q4_0.bin

TEMPLATE """{{ if .First }}{{ .System }}{{ end }}{{ .Prompt }} [/INST]{{ .Response }} </s><s>[INST] """

SYSTEM "[INST] "
PARAMETER stop "[INST]"
PARAMETER stop "[/INST]"
PARAMETER stop "<<SYS>>"
PARAMETER stop "<</SYS>>"

PARAMETER temperature 0
PARAMETER seed 37
PARAMETER num_ctx 4096

from ollama.

Fei-Wang avatar Fei-Wang commented on June 30, 2024

Hi @mxyng, could you please take a look at the Modelfile config I provided when you get a chance?
Thanks!

from ollama.

mxyng avatar mxyng commented on June 30, 2024

@Fei-Wang what kind of model is q4_0.bin? The template may be incorrect. It should probably be something like this:

[INST] {{ .System }} {{ .Prompt }} [/INST]

<s> and </s> shouldn't be necessary and {{ .Response }} is (currently) ignored.

from ollama.

Fei-Wang avatar Fei-Wang commented on June 30, 2024

Hey @mxyng,

I'm working with q4_0.bin, a finetuned llama2 model, and I've hit two snags:

  1. I'm using <s> and </s> as per the guide on Hugging Face (https://huggingface.co/blog/codellama#conversational-instructions). Did I get something wrong?

  2. Changing the ModelFile to llama2 hasn't fixed inconsistent outputs. See the screenshot below.

Any ideas?

Screenshot 2024-01-23 at 2 03 40 PM

from ollama.

pdevine avatar pdevine commented on June 30, 2024

Closing this as a dupe of #1749

from ollama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.