Instructions to use prithivMLmods/Gamma-Velorum-1.5B-Thinker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Gamma-Velorum-1.5B-Thinker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Gamma-Velorum-1.5B-Thinker") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/Gamma-Velorum-1.5B-Thinker") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Gamma-Velorum-1.5B-Thinker") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use prithivMLmods/Gamma-Velorum-1.5B-Thinker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Gamma-Velorum-1.5B-Thinker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Gamma-Velorum-1.5B-Thinker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Gamma-Velorum-1.5B-Thinker
- SGLang
How to use prithivMLmods/Gamma-Velorum-1.5B-Thinker with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/Gamma-Velorum-1.5B-Thinker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Gamma-Velorum-1.5B-Thinker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/Gamma-Velorum-1.5B-Thinker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Gamma-Velorum-1.5B-Thinker", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Gamma-Velorum-1.5B-Thinker with Docker Model Runner:
docker model run hf.co/prithivMLmods/Gamma-Velorum-1.5B-Thinker
Gamma-Velorum-1.5B-Thinker
Gamma-Velorum-1.5B-Thinker is a math and code reasoning model fine-tuned from Qwen2.5-1.5B, crafted to tackle complex mathematical and programming problems using chain-of-thought methodology. It excels in step-by-step explanations, long-context understanding, and bilingual support — ideal for education, coding tutors, and logic-intensive applications.
Key Features
Math + Code Chain-of-Thought Reasoning
Trained to provide detailed, structured steps for both mathematical and coding problems. Gamma-Velorum-1.5B-Thinker explains not just the what, but the why, ensuring clarity in logic and computation.Backed by Qwen2.5-1.5B
Built on the latest Qwen2.5 architecture, bringing improved accuracy, reasoning capabilities, and enhanced tokenizer efficiency.Long-Context Problem Solving
Capable of handling long multi-turn questions, nested logic, and extended code/math scenarios — ideal for competitive exams or coding challenges.Bilingual (English + Chinese)
Seamlessly understands and reasons through prompts in both English and Simplified Chinese, making it versatile for global education platforms.Efficient and Lightweight
With only 1.5B parameters, it strikes a balance between performance and deployability, suitable for web, edge, and mobile environments.
Quickstart with Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "prithivMLmods/Gamma-Velorum-1.5B-Thinker"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Write a Python function to calculate factorial of a number."
messages = [
{"role": "system", "content": "You are a helpful tutor skilled in math and programming. Explain solutions step-by-step."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
Intended Use
- Math & Coding Tutors: Solves word problems, algebra, logic puzzles, and programming challenges with clarity and precision.
- Bilingual EdTech Apps: Explains both math and code in English and Chinese for a broader learning reach.
- STEM Reasoning Engines: Powers scientific reasoning tools, code-assist bots, and step-by-step logic solvers.
- Lightweight LLM Use Cases: Browser-based, embedded systems, or mobile apps for learners and developers.
Limitations
Domain Focused:
Optimized for STEM and code tasks — general conversation or abstract creative writing may not be as strong.Scale Limitations:
As a 1.5B parameter model, it may not match larger models on highly complex logic or long-form generation.Bias Inheritance:
Carries forward biases from its Qwen2.5 base model — important for sensitive contexts.Prompt Structuring Matters:
Performs best with explicit, structured prompts for math/code. Ambiguous or casual phrasing may reduce accuracy.
- Downloads last month
- 2
