duyntnet's picture
Upload README.md
14ca79b verified
|
raw
history blame contribute delete
No virus
927 Bytes
metadata
license: other
language:
  - en
pipeline_tag: text-generation
inference: false
tags:
  - transformers
  - gguf
  - imatrix
  - bagel-8b-v1.0

Quantizations of https://huggingface.co/jondurbin/bagel-8b-v1.0

From original readme

Prompt formatting

This model uses the llama-3-instruct prompt template, and is provided in the tokenizer config. You can use the apply_chat_template method to accurate format prompts, e.g.:

import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("jondurbin/bagel-8b-v1.0", trust_remote_code=True)
chat = [
  {"role": "system", "content": "You are Bob, a friendly AI assistant."},
  {"role": "user", "content": "Hello, how are you?"},
  {"role": "assistant", "content": "I'm doing great. How can I help you today?"},
  {"role": "user", "content": "I'd like to show off how chat templating works!"},
]
print(tokenizer.apply_chat_template(chat, tokenize=False))