Instructions to use AdvRahul/Axion-Pro-Indic-24B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AdvRahul/Axion-Pro-Indic-24B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AdvRahul/Axion-Pro-Indic-24B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AdvRahul/Axion-Pro-Indic-24B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AdvRahul/Axion-Pro-Indic-24B with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M # Run inference directly in the terminal: llama cli -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M # Run inference directly in the terminal: llama cli -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
Use Docker
docker model run hf.co/AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use AdvRahul/Axion-Pro-Indic-24B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AdvRahul/Axion-Pro-Indic-24B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AdvRahul/Axion-Pro-Indic-24B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
- SGLang
How to use AdvRahul/Axion-Pro-Indic-24B 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 "AdvRahul/Axion-Pro-Indic-24B" \ --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": "AdvRahul/Axion-Pro-Indic-24B", "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 "AdvRahul/Axion-Pro-Indic-24B" \ --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": "AdvRahul/Axion-Pro-Indic-24B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use AdvRahul/Axion-Pro-Indic-24B with Ollama:
ollama run hf.co/AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
- Unsloth Desktop
- Docker Model Runner
How to use AdvRahul/Axion-Pro-Indic-24B with Docker Model Runner:
docker model run hf.co/AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
- Lemonade
How to use AdvRahul/Axion-Pro-Indic-24B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AdvRahul/Axion-Pro-Indic-24B:Q5_K_M
Run and chat with the model
lemonade run user.Axion-Pro-Indic-24B-Q5_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,65 +1,100 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
-
- bn
|
| 7 |
- hi
|
| 8 |
-
- kn
|
| 9 |
-
- gu
|
| 10 |
-
- mr
|
| 11 |
-
- ml
|
| 12 |
-
- or
|
| 13 |
-
- pa
|
| 14 |
- ta
|
| 15 |
- te
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
tags:
|
| 19 |
-
-
|
| 20 |
-
-
|
|
|
|
| 21 |
---
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
| 5 |
- hi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
- ta
|
| 7 |
- te
|
| 8 |
+
- kn
|
| 9 |
+
- ml
|
| 10 |
+
- bn
|
| 11 |
+
- mr
|
| 12 |
+
- gu
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
tags:
|
| 15 |
+
- Axion
|
| 16 |
+
- Indic
|
| 17 |
+
library_name: transformers
|
| 18 |
---
|
| 19 |
|
| 20 |
+
<div align="center" style="line-height: 1;">
|
| 21 |
+
<a href="https://huggingface.co/AdvRahul" target="_blank" style="margin: 2px;">
|
| 22 |
+
<img alt="Chat" src="https://img.shields.io/badge/🤖_Chat-Axion-blue" style="display: inline-block; vertical-align: middle;"/>
|
| 23 |
+
</a>
|
| 24 |
+
<a href="https://huggingface.co/AdvRahul" target="_blank" style="margin: 2px;">
|
| 25 |
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-AdvRahul-ffc107?color=ffc107&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 26 |
+
</a>
|
| 27 |
+
<a href="https://github.com/AdvRahul" target="_blank" style="margin: 2px;">
|
| 28 |
+
<img alt="Github" src="https://img.shields.io/badge/GitHub-Axion-000?logo=github&color=0000FF" style="display: inline-block; vertical-align: middle;"/>
|
| 29 |
+
</a>
|
| 30 |
+
<a href="https://x.com/yourhandle" target="_blank" style="margin: 2px;">
|
| 31 |
+
<img alt="X" src="https://img.shields.io/badge/X-Axion-6080F0?logo=x&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 32 |
+
</a>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div align="center" style="line-height: 1;">
|
| 36 |
+
<a href="#license" style="margin: 2px;">
|
| 37 |
+
<img alt="License" src="https://img.shields.io/badge/License-Apache2.0-A5de54" style="display: inline-block; vertical-align: middle;"/>
|
| 38 |
+
</a>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
# Axion-Pro-Indic-24B
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## Model Information
|
| 45 |
+
|
| 46 |
+
**Axion-Pro-Indic-24B** is a multilingual, hybrid-reasoning, text-only language model built on Mistral-Small.
|
| 47 |
+
This post-trained version delivers exceptional improvements over the base model:
|
| 48 |
+
|
| 49 |
+
- **+20%** average improvement on Indian language benchmarks
|
| 50 |
+
- **+21.6%** enhancement on math benchmarks
|
| 51 |
+
- **+17.6%** boost on programming benchmarks
|
| 52 |
+
- **+86%** improvement in romanized Indian language GSM-8K benchmarks (languages × mathematics intersection).
|
| 53 |
+
|
| 54 |
+
### Key Features
|
| 55 |
+
|
| 56 |
+
- **Hybrid Thinking Mode**: Supports both "think" and "non-think" modes.
|
| 57 |
+
- **Advanced Indic Skills**: Post-trained on Indian languages + English, reflecting Indian cultural values.
|
| 58 |
+
- **Superior Reasoning Capabilities**: Outperforms similarly sized models on coding and math benchmarks.
|
| 59 |
+
- **Seamless Multilingual Experience**: Full support for Indic scripts and romanized text.
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
## Quickstart
|
| 64 |
+
|
| 65 |
+
### With Transformers
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 69 |
+
|
| 70 |
+
model_name = "AdvRahul/Axion-Pro-Indic-24B"
|
| 71 |
+
|
| 72 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 73 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 74 |
+
model_name, torch_dtype="auto", device_map="auto"
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
prompt = "Who are you and what is your purpose on this planet?"
|
| 78 |
+
|
| 79 |
+
messages = [{"role": "user", "content": prompt}]
|
| 80 |
+
text = tokenizer.apply_chat_template(
|
| 81 |
+
messages,
|
| 82 |
+
tokenize=False,
|
| 83 |
+
enable_thinking=True, # Default True; set False for no-think mode
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 87 |
+
|
| 88 |
+
generated_ids = model.generate(**model_inputs, max_new_tokens=8192)
|
| 89 |
+
output_ids = generated_ids[0][len(model_inputs.input_ids[0]) :].tolist()
|
| 90 |
+
output_text = tokenizer.decode(output_ids)
|
| 91 |
+
|
| 92 |
+
if "</think>" in output_text:
|
| 93 |
+
reasoning_content = output_text.split("</think>")[0].rstrip("\n")
|
| 94 |
+
content = output_text.split("</think>")[-1].lstrip("\n").rstrip("</s>")
|
| 95 |
+
else:
|
| 96 |
+
reasoning_content = ""
|
| 97 |
+
content = output_text.rstrip("</s>")
|
| 98 |
+
|
| 99 |
+
print("reasoning content:", reasoning_content)
|
| 100 |
+
print("content:", content)
|