Downloads · 30 days
48
1% of all-time downloads
suayptalha/Komodo-7B-Instruct
Komodo-7B-Instruct is a text generation model from suayptalha. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
48
1% of all-time downloads
All-time downloads
6.5K
Public
Parameters
7.8B
5.5 GB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
How the weights are stored.
U86.7B · 86%
From the Hugging Face model README

Komodo is a Qwen 2.5-7B-Instruct-FineTuned model on TIGER-Lab/MathInstruct dataset to increase math performance of the base model.
This model is 4bit-quantized.
Suggested Usage:
tokenizer = AutoTokenizer.from_pretrained("suayptalha/Komodo-7B-Instruct")
model = AutoModelForCausalLM.from_pretrained("suayptalha/Komodo-7B-Instruct")
example_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
{}
### Input:
{}
### Response:
{}"""
inputs = tokenizer(
[
example_prompt.format(
"", #Your question here
"", #Given input here
"", #Output (for training)
)
], return_tensors = "pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens = 512, use_cache = True)
tokenizer.batch_decode(outputs)
<a href="https://www.buymeacoffee.com/suayptalha" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>