Instructions to use Zual/Triolet-1.7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zual/Triolet-1.7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Zual/Triolet-1.7B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zual/Triolet-1.7B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Zual/Triolet-1.7B", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use Zual/Triolet-1.7B with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Zual/Triolet-1.7B") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Zual/Triolet-1.7B 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 Zual/Triolet-1.7B:BF16 # Run inference directly in the terminal: llama cli -hf Zual/Triolet-1.7B:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Zual/Triolet-1.7B:BF16 # Run inference directly in the terminal: llama cli -hf Zual/Triolet-1.7B:BF16
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 Zual/Triolet-1.7B:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Zual/Triolet-1.7B:BF16
Use Docker
docker model run hf.co/Zual/Triolet-1.7B:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Zual/Triolet-1.7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zual/Triolet-1.7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zual/Triolet-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Zual/Triolet-1.7B:BF16
- SGLang
How to use Zual/Triolet-1.7B 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 "Zual/Triolet-1.7B" \ --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": "Zual/Triolet-1.7B", "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 "Zual/Triolet-1.7B" \ --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": "Zual/Triolet-1.7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Zual/Triolet-1.7B with Ollama:
ollama run hf.co/Zual/Triolet-1.7B:BF16
- Unsloth Desktop
- Pi
How to use Zual/Triolet-1.7B with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Zual/Triolet-1.7B"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Zual/Triolet-1.7B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Zual/Triolet-1.7B with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Zual/Triolet-1.7B"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Zual/Triolet-1.7B" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zual/Triolet-1.7B", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use Zual/Triolet-1.7B with Docker Model Runner:
docker model run hf.co/Zual/Triolet-1.7B:BF16
- Lemonade
How to use Zual/Triolet-1.7B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Zual/Triolet-1.7B:BF16
Run and chat with the model
lemonade run user.Triolet-1.7B-BF16
List all available models
lemonade list
- Hermes Agent
How to use Zual/Triolet-1.7B with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Zual/Triolet-1.7B"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Zual/Triolet-1.7B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Zual/Triolet-1.7B with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Zual/Triolet-1.7B"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Zual/Triolet-1.7B" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download engine/README.md from Zual/Triolet-1.7B: direct link, hf CLI and curl.
- Browser
- Download file 1.67 kB
-
https://huggingface.co/Zual/Triolet-1.7B/resolve/main/engine/README.md
- Command line
-
hf download hf://Zual/Triolet-1.7B/engine/README.md
-
curl -L -o README.md https://huggingface.co/Zual/Triolet-1.7B/resolve/main/engine/README.md
Run the browser weights
The model and tokenizer in this directory form a pair. The QW35 file has 80,000 embedding rows. The TOK1 file contains their ordered IDs, BPE merges and byte fallback. Its ordered ID table matches the vocabulary fingerprint recorded in the model header. Re-exporting the tokenizer from the final HF tokenizer with that same keep list reproduced every byte.
The public browser page downloads a runtime and a model selected by its current configuration. The page serves the same pair as this directory. To run the pair here, the commands below use the site's C/WASM CPU runtime under Node.js. From the root of a local model checkout, fetch the small runtime files once, then run the last command offline. The test used Node 24 and the single-thread SIMD build. Browser page · Page configuration
mkdir -p runtime
site=https://triolet.pages.lisn.upsaclay.fr/
for f in discuter_node.mjs moteur.js tokenizer.js gabarit.js aide.js qwen35-simd.wasm; do
curl -fsSL "$site/$f" -o "runtime/$f" || exit 1
done
node runtime/discuter_node.mjs engine/tokenizer-lfm3-80k.bin \
engine/Triolet-1.7B-QW35.bin runtime/qwen35-simd.wasm 1 \
--glouton --json ./generation.json 'What is a triangle? Answer in one sentence.'
The pair generated “A triangle is a three-sided polygon with three straight sides and three angles, formed by connecting three non-collinear points.” The decoding test used thinking off. Benchmark fidelity relative to BF16 remains under evaluation. Model card · License · Changes