Instructions to use VertexAGI/amethyst-1-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VertexAGI/amethyst-1-small 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("VertexAGI/amethyst-1-small") 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
- LM Studio
- Pi
How to use VertexAGI/amethyst-1-small with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VertexAGI/amethyst-1-small"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "VertexAGI/amethyst-1-small" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use VertexAGI/amethyst-1-small with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "VertexAGI/amethyst-1-small"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "VertexAGI/amethyst-1-small" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VertexAGI/amethyst-1-small", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use VertexAGI/amethyst-1-small 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 "VertexAGI/amethyst-1-small"
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 VertexAGI/amethyst-1-small
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use VertexAGI/amethyst-1-small with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VertexAGI/amethyst-1-small"
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 "VertexAGI/amethyst-1-small" \ --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"
Amethyst 1 Small
Amethyst 1 Small is a general-purpose chat and instruction-following model, fine-tuned from Llama 3.1 8B Instruct using LoRA on the same distilled instruction dataset used for Amethyst 1 Mini (which is based on Gemma 3 4B). It's the second, larger model in the Amethyst family — same data, bigger base model.
Model Details
| Developed by | Independent research project |
| Base model | meta-llama/Llama-3.1-8B-Instruct |
| Fine-tuning base checkpoint | mlx-community/Meta-Llama-3.1-8B-Instruct-4bit |
| Architecture | Llama 3.1, 8B parameters (dense, decoder-only transformer) |
| Fine-tuning method | LoRA (rank 8, scale 20.0), fused into the base weights — released 4-bit quantized (same quantization as the base checkpoint), not dequantized |
| Fine-tuning framework | MLX / mlx-lm, on Apple Silicon |
| Trained modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj across 16 layers |
| Language | English |
| License | Llama 3.1 Community License |
Training Data
Same 1,122 instruction/response pairs (1,082 train / 40 validation) used for Amethyst 1 Mini — synthetically generated via knowledge distillation from nvidia/nemotron-3-super-120b-a12b (Nemotron-3-Super, a 120B-parameter MoE model, ~12B active) through the OpenRouter API, spanning explanation, reasoning, code, extraction, planning, roleplay, creative writing, translation, sentiment classification, and brainstorming.
Training Procedure
- Method: Supervised fine-tuning via LoRA (rank 8, dropout 0.0, scale 20.0)
- Optimizer: Adam, learning rate 1e-5 (constant schedule)
- Sequence length: 4096 tokens
- Gradient checkpointing: enabled
- Training: trained in two passes (interrupted partway by a local machine restart and resumed from an intermediate checkpoint), together substantially exceeding the original 3,246-iteration budget
- Checkpoint selection: the released weights use the checkpoint with the lowest observed validation loss (1.487) — later checkpoints in this small, repetitive dataset oscillate around a noise floor rather than improving further, matching the pattern seen with Amethyst 1 Mini
Intended Use
Amethyst 1 Small is intended as a general-purpose conversational assistant for experimentation and research into small-scale distillation pipelines. It is not intended for high-stakes, safety-critical, or production use.
Limitations
- Trained on the same small (1,122-example) synthetic dataset as Amethyst 1 Mini — behavior can be inconsistent outside the categories represented in training.
- Distilled from a single teacher model without human review of every example.
- Inherits the general limitations and knowledge cutoff of its base model, Llama 3.1 8B Instruct.
- An early, second-generation checkpoint in the Amethyst series.
Usage
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler
model, tokenizer = load("VertexAIco/amethyst-1-small")
messages = [{"role": "user", "content": "Explain how vaccines train the immune system, in simple terms."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
out = generate(model, tokenizer, prompt=prompt, max_tokens=512, sampler=make_sampler(temp=0.0))
print(out)
Citation
@misc{amethyst1small,
title = {Amethyst 1 Small},
author = {Independent research project},
year = {2026},
note = {LoRA fine-tune of Llama 3.1 8B Instruct, distilled from Nemotron-3-Super-120B-A12B}
}
This model is built on Llama 3.1 and subject to the Llama 3.1 Community License.
- Downloads last month
- 119
4-bit
Model tree for VertexAGI/amethyst-1-small
Base model
meta-llama/Llama-3.1-8B