Text Generation
Transformers
GGUF
PyTorch
code
multiscale_transformer
code-generation
multi-scale-transformer
cpu-optimized
cubic
llama
byte-level
agentic
Eval Results (legacy)
Instructions to use CubicLabs/AXL-Coder-15M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CubicLabs/AXL-Coder-15M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CubicLabs/AXL-Coder-15M")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("CubicLabs/AXL-Coder-15M", dtype="auto") - llama-cpp-python
How to use CubicLabs/AXL-Coder-15M with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="CubicLabs/AXL-Coder-15M", filename="axl-coder-llama-f16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use CubicLabs/AXL-Coder-15M 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 CubicLabs/AXL-Coder-15M:F16 # Run inference directly in the terminal: llama cli -hf CubicLabs/AXL-Coder-15M:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CubicLabs/AXL-Coder-15M:F16 # Run inference directly in the terminal: llama cli -hf CubicLabs/AXL-Coder-15M:F16
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 CubicLabs/AXL-Coder-15M:F16 # Run inference directly in the terminal: ./llama-cli -hf CubicLabs/AXL-Coder-15M:F16
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 CubicLabs/AXL-Coder-15M:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf CubicLabs/AXL-Coder-15M:F16
Use Docker
docker model run hf.co/CubicLabs/AXL-Coder-15M:F16
- LM Studio
- Jan
- vLLM
How to use CubicLabs/AXL-Coder-15M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CubicLabs/AXL-Coder-15M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CubicLabs/AXL-Coder-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CubicLabs/AXL-Coder-15M:F16
- SGLang
How to use CubicLabs/AXL-Coder-15M 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 "CubicLabs/AXL-Coder-15M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CubicLabs/AXL-Coder-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "CubicLabs/AXL-Coder-15M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CubicLabs/AXL-Coder-15M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use CubicLabs/AXL-Coder-15M with Ollama:
ollama run hf.co/CubicLabs/AXL-Coder-15M:F16
- Unsloth Studio
How to use CubicLabs/AXL-Coder-15M 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 CubicLabs/AXL-Coder-15M 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 CubicLabs/AXL-Coder-15M to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for CubicLabs/AXL-Coder-15M to start chatting
- Atomic Chat new
- Docker Model Runner
How to use CubicLabs/AXL-Coder-15M with Docker Model Runner:
docker model run hf.co/CubicLabs/AXL-Coder-15M:F16
- Lemonade
How to use CubicLabs/AXL-Coder-15M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CubicLabs/AXL-Coder-15M:F16
Run and chat with the model
lemonade run user.AXL-Coder-15M-F16
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ tags:
|
|
| 6 |
- code-generation
|
| 7 |
- multi-scale-transformer
|
| 8 |
- cpu-optimized
|
| 9 |
-
-
|
| 10 |
- pytorch
|
| 11 |
- llama
|
| 12 |
- gguf
|
|
@@ -32,13 +32,13 @@ model-index:
|
|
| 32 |
|
| 33 |
# AXL-Coder-15M
|
| 34 |
|
| 35 |
-
Agentic coding. 26M params. PPL 1.54. 8-action tool router. Part of the AXL model family by [
|
| 36 |
|
| 37 |
## Model Details
|
| 38 |
|
| 39 |
| Property | Value |
|
| 40 |
|----------|-------|
|
| 41 |
-
| Developed by | [
|
| 42 |
| Architecture | Multi-Scale Transformer |
|
| 43 |
| Parameters | 26M |
|
| 44 |
| Optimizer | SGD |
|
|
@@ -53,8 +53,8 @@ Agentic coding. 26M params. PPL 1.54. 8-action tool router. Part of the AXL mode
|
|
| 53 |
|
| 54 |
### Sources
|
| 55 |
|
| 56 |
-
- **Repository:** [GitHub](https://github.com/
|
| 57 |
-
- **Organization:** [
|
| 58 |
|
| 59 |
## Uses
|
| 60 |
|
|
@@ -154,9 +154,9 @@ Multi-Scale Transformer with three parallel encoder stacks at resolution scales
|
|
| 154 |
```bibtex
|
| 155 |
@misc{axl_2026,
|
| 156 |
title={AXL: AXL-Coder-15M - Multi-Scale Transformer for CPU Code Generation},
|
| 157 |
-
author={
|
| 158 |
year={2026},
|
| 159 |
-
url={https://huggingface.co/
|
| 160 |
}
|
| 161 |
```
|
| 162 |
|
|
@@ -187,4 +187,4 @@ ids = torch.tensor([tokenizer.encode(prompt)], dtype=torch.long)
|
|
| 187 |
with torch.no_grad():
|
| 188 |
out = model.generate(ids, max_new_tokens=100, temperature=0.8, top_k=40)
|
| 189 |
print(tokenizer.decode(out[0].tolist()))
|
| 190 |
-
```
|
|
|
|
| 6 |
- code-generation
|
| 7 |
- multi-scale-transformer
|
| 8 |
- cpu-optimized
|
| 9 |
+
- cubic
|
| 10 |
- pytorch
|
| 11 |
- llama
|
| 12 |
- gguf
|
|
|
|
| 32 |
|
| 33 |
# AXL-Coder-15M
|
| 34 |
|
| 35 |
+
Agentic coding. 26M params. PPL 1.54. 8-action tool router. Part of the AXL model family by [CubicLabs](https://huggingface.co/CubicLabs).
|
| 36 |
|
| 37 |
## Model Details
|
| 38 |
|
| 39 |
| Property | Value |
|
| 40 |
|----------|-------|
|
| 41 |
+
| Developed by | [CubicLabs](https://huggingface.co/CubicLabs) |
|
| 42 |
| Architecture | Multi-Scale Transformer |
|
| 43 |
| Parameters | 26M |
|
| 44 |
| Optimizer | SGD |
|
|
|
|
| 53 |
|
| 54 |
### Sources
|
| 55 |
|
| 56 |
+
- **Repository:** [GitHub](https://github.com/Cubic/AXL)
|
| 57 |
+
- **Organization:** [CubicLabs](https://huggingface.co/CubicLabs)
|
| 58 |
|
| 59 |
## Uses
|
| 60 |
|
|
|
|
| 154 |
```bibtex
|
| 155 |
@misc{axl_2026,
|
| 156 |
title={AXL: AXL-Coder-15M - Multi-Scale Transformer for CPU Code Generation},
|
| 157 |
+
author={Cubic},
|
| 158 |
year={2026},
|
| 159 |
+
url={[https://huggingface.co/CubicLabs](https://huggingface.co/CubicLabs)}
|
| 160 |
}
|
| 161 |
```
|
| 162 |
|
|
|
|
| 187 |
with torch.no_grad():
|
| 188 |
out = model.generate(ids, max_new_tokens=100, temperature=0.8, top_k=40)
|
| 189 |
print(tokenizer.decode(out[0].tolist()))
|
| 190 |
+
```
|