Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Llama-3-8B-Instruct model #1073

Open
cszhz opened this issue Apr 25, 2024 · 2 comments
Open

Support for Llama-3-8B-Instruct model #1073

cszhz opened this issue Apr 25, 2024 · 2 comments
Labels
huggingchat For issues related to HuggingChat specifically models This issue is related to model performance/reliability question Further information is requested

Comments

@cszhz
Copy link

cszhz commented Apr 25, 2024

hi,
For model meta-llama/Meta-Llama-3-8B-Instruct, it is unlisted, not sure when will be supported?

"name": "meta-llama/Meta-Llama-3-8B-Instruct",

thanks.

@nsarrazin nsarrazin added question Further information is requested models This issue is related to model performance/reliability huggingchat For issues related to HuggingChat specifically labels Apr 25, 2024
@iChristGit
Copy link

For me its working since release, here is the local.env:

MONGODB_URL=mongodb://localhost:27017
USE_LOCAL_WEBSEARCH=true
PUBLIC_APP_ASSETS=chatui
HF_ACCESS_TOKEN=hf_none
PUBLIC_APP_DESCRIPTION="ChatGPT But Open Source!"
PUBLIC_APP_NAME=ChatGPT
MODELS=`[
  {
      "name": "Llama-3",
      "description": "Meta Llama3 is a great overall model",
       "preprompt": "This is a conversation between User and Llama, a friendly chatbot. Llama is helpful, kind, honest, good at writing, and never fails to answer any 	requests immediately and with precision.",
       "promptExamples": [
      {
        "title": "Write an email from bullet list",
        "prompt": "As a restaurant owner, write a professional email to the supplier to get these products every week: \n\n- Wine (x10)\n- Eggs (x24)\n- Bread (x12)"
      }, {
        "title": "Code a snake game",
        "prompt": "Code a basic snake game in python and give explanations for each step."
      }, {
        "title": "Assist in a task",
        "prompt": "How do I make a delicious lemon cheesecake?"
      }
      ],
      "tokenizer" : "philschmid/meta-llama-3-tokenizer",
      "parameters": {
        "temperature": 0.2,
        "top_p": 0.95,
        "repetition_penalty": 1.0,
        "top_k": 50,
        "truncate": 4096,
        "max_new_tokens": 4096,
        "stop": ["<|eot_id|>"]
    },
	"endpoints": [
        {
         "type": "ollama",
         "url" : "http://127.0.0.1:11434",
         "ollamaName" : "llama3:instruct"
    }]
  }
]`

@ruizcrp
Copy link

ruizcrp commented Apr 30, 2024

Hi,
I also could make it work with the latest release and a similar local.env - particularly with that stop-word in it. Right now I am having an issue, that it stops sometimes too early - but I don't know yet what the source is (could also be API-side not frontend). I didn't try that tokenizer yet though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
huggingchat For issues related to HuggingChat specifically models This issue is related to model performance/reliability question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants