Text Generation
Transformers
Safetensors
English
llama
transformer
compressed
hxq
helix-substrate
vector-quantization
helixcode
Eval Results (legacy)
text-generation-inference
8-bit precision
Instructions to use EchoLabs33/tinyllama-1.1b-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EchoLabs33/tinyllama-1.1b-hxq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EchoLabs33/tinyllama-1.1b-hxq")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/tinyllama-1.1b-hxq") model = AutoModelForCausalLM.from_pretrained("EchoLabs33/tinyllama-1.1b-hxq", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EchoLabs33/tinyllama-1.1b-hxq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EchoLabs33/tinyllama-1.1b-hxq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/tinyllama-1.1b-hxq", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EchoLabs33/tinyllama-1.1b-hxq
- SGLang
How to use EchoLabs33/tinyllama-1.1b-hxq 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 "EchoLabs33/tinyllama-1.1b-hxq" \ --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": "EchoLabs33/tinyllama-1.1b-hxq", "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 "EchoLabs33/tinyllama-1.1b-hxq" \ --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": "EchoLabs33/tinyllama-1.1b-hxq", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EchoLabs33/tinyllama-1.1b-hxq with Docker Model Runner:
docker model run hf.co/EchoLabs33/tinyllama-1.1b-hxq
Update model card: LoRA fine-tuning now supported via HelixLinearSTE
Browse files
README.md
CHANGED
|
@@ -71,7 +71,7 @@ Eval: WikiText-2 test split, 2048 tokens, stride 512.
|
|
| 71 |
## Good to Know
|
| 72 |
|
| 73 |
- **GPU and CPU supported** — runs on any CUDA GPU or CPU via standard PyTorch. Fused kernels for additional speedup are in progress.
|
| 74 |
-
- **
|
| 75 |
- **Requires `helix-substrate`** — the quantizer is not built into transformers. You need `pip install "helix-substrate[hf]"`.
|
| 76 |
|
| 77 |
## What is HelixCode?
|
|
|
|
| 71 |
## Good to Know
|
| 72 |
|
| 73 |
- **GPU and CPU supported** — runs on any CUDA GPU or CPU via standard PyTorch. Fused kernels for additional speedup are in progress.
|
| 74 |
+
- **Fine-tunable via LoRA** — compressed weights remain frozen, but LoRA adapters attach to each `HelixLinear` layer via `HelixLinearSTE`. See `helix-substrate` for training infrastructure.
|
| 75 |
- **Requires `helix-substrate`** — the quantizer is not built into transformers. You need `pip install "helix-substrate[hf]"`.
|
| 76 |
|
| 77 |
## What is HelixCode?
|