Instructions to use AdvRahul/Axion-1.5B-Reasoning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AdvRahul/Axion-1.5B-Reasoning with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AdvRahul/Axion-1.5B-Reasoning", filename="Dharma-DeepScaleR-1.5B-Preview-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AdvRahul/Axion-1.5B-Reasoning 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-1.5B-Reasoning:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvRahul/Axion-1.5B-Reasoning:Q4_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-1.5B-Reasoning:Q4_K_M # Run inference directly in the terminal: llama cli -hf AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf AdvRahul/Axion-1.5B-Reasoning:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf AdvRahul/Axion-1.5B-Reasoning:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
Use Docker
docker model run hf.co/AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use AdvRahul/Axion-1.5B-Reasoning with Ollama:
ollama run hf.co/AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
- Unsloth Studio
How to use AdvRahul/Axion-1.5B-Reasoning with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AdvRahul/Axion-1.5B-Reasoning to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AdvRahul/Axion-1.5B-Reasoning to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AdvRahul/Axion-1.5B-Reasoning to start chatting
- Atomic Chat new
- Docker Model Runner
How to use AdvRahul/Axion-1.5B-Reasoning with Docker Model Runner:
docker model run hf.co/AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
- Lemonade
How to use AdvRahul/Axion-1.5B-Reasoning with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AdvRahul/Axion-1.5B-Reasoning:Q4_K_M
Run and chat with the model
lemonade run user.Axion-1.5B-Reasoning-Q4_K_M
List all available models
lemonade list
Upload Dharma-DeepScaleR-1.5B-Preview-Q4_K_M.gguf
Browse filesDharma-DeepScaleR-1.5B-Preview-Q4_K_M is a quantized version of the original agentica-org/DeepScaleR-1.5B-Preview model. By applying the q4-K-M quantization technique, this variant has been optimized to significantly reduce computational overhead and memory usage. This makes it well-suited for environments where latency and resource efficiency are critical, while still delivering robust performance.
Model Details
Base Model: The foundation of this model is the DeepScaleR-1.5B-Preview architecture, known for its balanced approach between scale and efficiency.
Quantization: The applied q4-K-M quantization reduces the model’s precision in a controlled way, trading minimal accuracy loss for substantial gains in inference speed and lower memory consumption. This approach is particularly beneficial when deploying models to production systems with limited resources.
Architecture: While retaining the original model’s deep architecture, the quantized version benefits from fewer computational demands during inference, making it ideal for real-time applications.
Usage
This model is designed with versatility in mind. It can serve as a drop-in replacement for tasks originally supported by the base model, such as:
Text generation
Summarization
Question answering
Developers are encouraged to experiment with the model under different settings. Below is an example snippet using the Hugging Face Transformers library:
python
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the tokenizer and quantized model
tokenizer = AutoTokenizer.from_pretrained("your-username/Dharma-DeepScaleR-1.5B-Preview-Q4_K_M")
model = AutoModelForCausalLM.from_pretrained("your-username/Dharma-DeepScaleR-1.5B-Preview-Q4_K_M")
# Encode input text and generate output
inputs = tokenizer("Generate some text based on this input.", return_tensors="pt")
outputs = model.generate(**inputs, max_length=50)
print(tokenizer.decode(outputs[0]))
Users should note that while the q4-K-M quantization method offers notable improvements in efficiency, there might be edge cases where full-precision performance could be preferred.
Intended Use and Limitations
This model is primarily intended for researchers and developers looking to balance compute efficiency with high-quality performance. Potential limitations include:
Minor degradations in the output quality compared to full-precision models (depending on the task and input scenarios)
Specific tuning may be necessary for task-specific deployments, particularly when extreme precision is required
Licensing
The model is provided under the Apache 2.0 License. This permissive license allows for broad usage, distribution, and modification. Users are encouraged to review the full license text to understand their rights and responsibilities when integrating or adapting this model.
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Dharma-DeepScaleR-1.5B-Preview-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ed31fa867cd2aadf61a2632ac49e439fe0c3526d218d9a2b0c9481da96b51a3
|
| 3 |
+
size 1117321888
|