Downloads · 30 days
8
1% of all-time downloads
ping98k/open-llama-3b-opus-reasoning-sft-2k-4bit
open-llama-3b-opus-reasoning-sft-2k-4bit is a text generation model from ping98k. Use it when you need the model to write or continue text. It is set up for transformers.
Merged and 4-bit quantized version of openllama3bv2 fine-tuned on reasoning data with <think tags.
Downloads · 30 days
8
1% of all-time downloads
All-time downloads
788
Public
Parameters
3.5B
2.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.1 GB · 100%
How the weights are stored.
U83.3B · 94%
From the Hugging Face model README
Merged and 4-bit quantized version of open_llama_3b_v2 fine-tuned on reasoning data with <think> tags.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ping98k/open-llama-3b-opus-reasoning-sft-2k-4bit", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("ping98k/open-llama-3b-opus-reasoning-sft-2k-4bit")
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is 10 * 5?"},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)
print(tokenizer.decode(output[0], skip_special_tokens=False))