Downloads · 30 days
16
4% of all-time downloads
TaimoorSiddiqui/Hopcoder-Mini-9B
Hopcoder-Mini-9B is a text generation model from TaimoorSiddiqui. 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.
Hopcoder-Mini-9B is a compact 9B-parameter reasoning model with a 1,048,576-token context window (YaRN rope-scaling enabled by default), native function calling, and strong chain-of-thought performance.
Downloads · 30 days
16
4% of all-time downloads
All-time downloads
366
Public
Parameters
9.4B
18.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.8 GB · 100%
From the Hugging Face model README
Hopcoder-Mini-9B is a compact 9B-parameter reasoning model with a 1,048,576-token context window (YaRN rope-scaling enabled by default), native function calling, and strong chain-of-thought performance.
| Field | Value |
|---|---|
| Architecture | Qwen3_5ForConditionalGeneration |
| Model type | qwen3_5 (text + vision) |
| Parameters | ~9B |
| Hidden size | 4096 |
| Layers | 32 (hybrid linear / full attention) |
| Attention heads | 16 |
| KV heads | 4 |
| Vocab size | 248,320 |
| Max context | 1,048,576 tokens |
| Precision | bfloat16 |
transformers >= 5.12.1 (required for qwen3_5 model type)torch >= 2.1trust_remote_code=True when loadingimport torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(
"TaimoorSiddiqui/Hopcoder-Mini-9B",
dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
processor = AutoProcessor.from_pretrained(
"TaimoorSiddiqui/Hopcoder-Mini-9B",
trust_remote_code=True,
)
messages = [
{"role": "user", "content": "What is 2+2?"},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(out[0], skip_special_tokens=True))
from transformers import AutoModelForImageTextToText, AutoProcessor
from PIL import Image
model = AutoModelForImageTextToText.from_pretrained(
"TaimoorSiddiqui/Hopcoder-Mini-9B",
dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True,
)
processor = AutoProcessor.from_pretrained(
"TaimoorSiddiqui/Hopcoder-Mini-9B",
trust_remote_code=True,
)
image = Image.open("example.jpg")
messages = [
{"role": "user", "content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this image."},
]},
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, images=image, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(out[0], skip_special_tokens=True))
Sampling: temperature=0.6, top_p=0.95, top_k=20 (Qwen3.5 defaults).
Apache 2.0.