Instructions to use bharatgenai/Param2-17B-A2.4B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bharatgenai/Param2-17B-A2.4B-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bharatgenai/Param2-17B-A2.4B-Thinking", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("bharatgenai/Param2-17B-A2.4B-Thinking", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bharatgenai/Param2-17B-A2.4B-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bharatgenai/Param2-17B-A2.4B-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bharatgenai/Param2-17B-A2.4B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/bharatgenai/Param2-17B-A2.4B-Thinking
- SGLang
How to use bharatgenai/Param2-17B-A2.4B-Thinking 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 "bharatgenai/Param2-17B-A2.4B-Thinking" \ --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": "bharatgenai/Param2-17B-A2.4B-Thinking", "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 "bharatgenai/Param2-17B-A2.4B-Thinking" \ --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": "bharatgenai/Param2-17B-A2.4B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use bharatgenai/Param2-17B-A2.4B-Thinking with Docker Model Runner:
docker model run hf.co/bharatgenai/Param2-17B-A2.4B-Thinking
Clarification needed: pretrained-only or was SFT applied post pretraining?
The model card contradicts itself. It calls this an "early post-training checkpoint" but the training section only describes two pretraining phases, with instruction and reasoning data mixed into PT-2. There is no mention of a separate SFT step anywhere.
Was any SFT done after pretraining, or is this purely the output of the two pretraining phases? Also, is the chat template included because SFT was done, or just because instruction data was mixed into pretraining?
Also looking forward to the 128k context variant mentioned in the model card.
Thanks for raising this - that’s a good catch.
To clarify the training process:
This checkpoint is primarily the result of the two pretraining phases (PT-1 and PT-2). Most of the model’s knowledge, reasoning capability, and general behavior come from those pretraining stages. During PT-2, we also mixed in instruction and reasoning-style data as part of continued pretraining.
After PT-2, we performed a small-scale SFT step using a limited number of high-quality instruction samples. This SFT stage was lightweight and intended only for basic conversational alignment and response formatting - not for injecting significant new knowledge or altering core capabilities.
So in summary:
The model is not purely pretraining-only - a small SFT step was applied.
However, the dominant contribution (knowledge + reasoning behavior) comes from the two pretraining phases.
The chat template is included because of both:
- instruction-style data mixed during PT-2, and
- the small alignment-focused SFT stage.
We are also in the process of releasing additional variants, including:
a) a long-context (128k) version, and
b) a more fully instruction-tuned checkpoint with stronger alignment.
