Text Generation
Transformers
GGUF
PyTorch
code
multiscale_transformer
code-generation
multi-scale-transformer
cpu-optimized
cubic
llama
byte-level
documentation
Eval Results (legacy)
Run this model with HF Jobs
Run CubicLabs/AXL-Docs-8M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/CubicLabs/AXL-Docs-8M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CubicLabs/AXL-Docs-8M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/CubicLabs/AXL-Docs-8M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/CubicLabs/AXL-Docs-8M. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use CubicLabs/AXL-Docs-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CubicLabs/AXL-Docs-8M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CubicLabs/AXL-Docs-8M")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("CubicLabs/AXL-Docs-8M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use CubicLabs/AXL-Docs-8M 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-Docs-8M:Q4_K_M # Run inference directly in the terminal: llama cli -hf CubicLabs/AXL-Docs-8M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf CubicLabs/AXL-Docs-8M:Q4_K_M # Run inference directly in the terminal: llama cli -hf CubicLabs/AXL-Docs-8M:Q4_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 CubicLabs/AXL-Docs-8M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf CubicLabs/AXL-Docs-8M:Q4_K_M
Use Docker
docker model run hf.co/CubicLabs/AXL-Docs-8M:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use CubicLabs/AXL-Docs-8M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CubicLabs/AXL-Docs-8M" # 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-Docs-8M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CubicLabs/AXL-Docs-8M:Q4_K_M
- SGLang
How to use CubicLabs/AXL-Docs-8M 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-Docs-8M" \ --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-Docs-8M", "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-Docs-8M" \ --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-Docs-8M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use CubicLabs/AXL-Docs-8M with Ollama:
ollama run hf.co/CubicLabs/AXL-Docs-8M:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use CubicLabs/AXL-Docs-8M with Docker Model Runner:
docker model run hf.co/CubicLabs/AXL-Docs-8M:Q4_K_M
- Lemonade
How to use CubicLabs/AXL-Docs-8M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CubicLabs/AXL-Docs-8M:Q4_K_M
Run and chat with the model
lemonade run user.AXL-Docs-8M-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files5 unmodified lines678910111219 unmodified lines323334353637383940414243448 unmodified lines535455565758596093 unmodified lines15415515615715815916016116224 unmodified lines1871881891905 unmodified lines- code-generation- multi-scale-transformer- cpu-optimized- koinic- pytorch- llama- gguf19 unmodified lines# AXL-Docs-8MDocumentation generation. 9.9M params. PPL 1.03. Context 512 bytes. Part of the AXL model family by [KoinicLabs](https://huggingface.co/KoinicLabs).## Model Details| Property | Value ||----------|-------|| Developed by | [KoinicLabs](https://huggingface.co/KoinicLabs) || Architecture | Multi-Scale Transformer || Parameters | 10M || Optimizer | Lion |8 unmodified lines### Sources- **Repository:** [GitHub](https://github.com/Koinic/AXL)- **Organization:** [KoinicLabs](https://huggingface.co/KoinicLabs)## Uses93 unmodified lines```bibtex@misc{axl_2026,title={AXL: AXL-Docs-8M - Multi-Scale Transformer for CPU Code Generation},author={Koinic},year={2026},url={https://huggingface.co/KoinicLabs}}```24 unmodified lineswith torch.no_grad():out = model.generate(ids, max_new_tokens=100, temperature=0.8, top_k=40)print(tokenizer.decode(out[0].tolist()))```5 unmodified lines678910111219 unmodified lines323334353637383940414243448 unmodified lines535455565758596093 unmodified lines15415515615715815916016116224 unmodified lines1871881891905 unmodified lines- code-generation- multi-scale-transformer- cpu-optimized- cubic- pytorch- llama- gguf19 unmodified lines# AXL-Docs-8MDocumentation generation. 9.9M params. PPL 1.03. Context 512 bytes. Part of the AXL model family by [CubicLabs](https://huggingface.co/CubicLabs).## Model Details| Property | Value ||----------|-------|| Developed by | [CubicLabs](https://huggingface.co/CubicLabs) || Architecture | Multi-Scale Transformer || Parameters | 10M || Optimizer | Lion |8 unmodified lines### Sources- **Repository:** [GitHub](https://github.com/Cubic/AXL)- **Organization:** [CubicLabs](https://huggingface.co/CubicLabs)## Uses93 unmodified lines```bibtex@misc{axl_2026,title={AXL: AXL-Docs-8M - Multi-Scale Transformer for CPU Code Generation},author={Cubic},year={2026},url={[https://huggingface.co/CubicLabs](https://huggingface.co/CubicLabs)}}```24 unmodified lineswith torch.no_grad():out = model.generate(ids, max_new_tokens=100, temperature=0.8, top_k=40)print(tokenizer.decode(out[0].tolist()))```
README.md+8-8