Downloads · 30 days
1.7K
12% of all-time downloads
duyntnet/stablelm-zephyr-3b-imatrix-GGUF
stablelm-zephyr-3b-imatrix-GGUF is a text generation model from duyntnet. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Quantizations of https://huggingface.co/stabilityai/stablelm-zephyr-3b
Downloads · 30 days
1.7K
12% of all-time downloads
All-time downloads
13.9K
Public
Repo size
35.4 GB
Likes
1
Public
Click a slice to open those files.
.gguf35.4 GB · 100%
From the Hugging Face model README
Quantizations of https://huggingface.co/stabilityai/stablelm-zephyr-3b
StableLM Zephyr 3B uses the following instruction format:
<|user|>
List 3 synonyms for the word "tiny"<|endoftext|>
<|assistant|>
1. Dwarf
2. Little
3. Petite<|endoftext|>
This format is also available through the tokenizer's apply_chat_template method:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('stabilityai/stablelm-zephyr-3b')
model = AutoModelForCausalLM.from_pretrained(
'stabilityai/stablelm-zephyr-3b',
device_map="auto"
)
prompt = [{'role': 'user', 'content': 'List 3 synonyms for the word "tiny"'}]
inputs = tokenizer.apply_chat_template(
prompt,
add_generation_prompt=True,
return_tensors='pt'
)
tokens = model.generate(
inputs.to(model.device),
max_new_tokens=1024,
temperature=0.8,
do_sample=True
)
print(tokenizer.decode(tokens[0], skip_special_tokens=False))
You can also see how to run a performance optimized version of this model here using OpenVINO from Intel.