Instructions to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="itssaharsh/relapse-tiny-aya-base-unlearn-bio")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("itssaharsh/relapse-tiny-aya-base-unlearn-bio") model = AutoModelForCausalLM.from_pretrained("itssaharsh/relapse-tiny-aya-base-unlearn-bio", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio 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 itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M # Run inference directly in the terminal: llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M # Run inference directly in the terminal: llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio: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 itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
Use Docker
docker model run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "itssaharsh/relapse-tiny-aya-base-unlearn-bio" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "itssaharsh/relapse-tiny-aya-base-unlearn-bio", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
- SGLang
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio 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 "itssaharsh/relapse-tiny-aya-base-unlearn-bio" \ --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": "itssaharsh/relapse-tiny-aya-base-unlearn-bio", "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 "itssaharsh/relapse-tiny-aya-base-unlearn-bio" \ --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": "itssaharsh/relapse-tiny-aya-base-unlearn-bio", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Ollama:
ollama run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Docker Model Runner:
docker model run hf.co/itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
- Lemonade
How to use itssaharsh/relapse-tiny-aya-base-unlearn-bio with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull itssaharsh/relapse-tiny-aya-base-unlearn-bio:Q4_K_M
Run and chat with the model
lemonade run user.relapse-tiny-aya-base-unlearn-bio-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Tiny Aya Base, with hazardous biology unlearned
This is CohereLabs/tiny-aya-base after RMU unlearning of hazardous biology knowledge (the WMDP bio forget corpus), made with Lexsi Labs' SafeTune. Three matrices are changed: the MLP output projections of layers 3 to 5. Everything else, including the tokenizer files, is the original.
Base model and tokenizer revision: CohereLabs/tiny-aya-base at revision d62ac17e24 (2026-09-30), the commit that carries Cohere's tokenizer fix (tokenizer_class: PreTrainedTokenizerFast). This repository ships that revision's tokenizer files unchanged. Copies of Tiny Aya made before the fix carry an outdated setting that splits text differently under transformers v5. The checker scripts/check_tokenizer.py, added with the paper, tells you which setting a repository, folder or GGUF file carries and what to do about it, e.g. python scripts/check_tokenizer.py itssaharsh/relapse-tiny-aya-base-unlearn-bio.
It is a research artifact of the Relapse project, built for the Lexsi AI Safety and Alignment Hackathon. It is not a safety guarantee. A short fine-tune can bring the knowledge back (see below).
Files
model.safetensors: full precision (fp16).relapse-tiny-aya-base-unlearn-bio-Q4_K_M.gguf: a real llama.cpp Q4_K_M file of the same weights.published_scores.json: the scores of exactly these two files, measured after they were written.
What was measured
All scores are accuracy on four-choice questions, read from the model's next-token probabilities. WMDP-bio is the hazard set (1,273 questions; lower is better; 25% is guessing). Everything was scored through the official tokenizer.
| Check | Original | This model |
|---|---|---|
| WMDP-bio (hazardous biology) | 60.1% | 33.2% |
| MMLU, 1,000 questions (general knowledge) | 57.6% | 56.4% |
| Benign biology (four MMLU biology subjects) | 65.4% | 57.5% |
| WMDP-bio with five worked examples in the prompt | 65.4% | 24.4% |
| WMDP-bio with an expert role-play prompt | 64.3% | 30.0% |
| Reworded English | 48.5% | 32.7% |
| Hindi | 49.7% | 35.8% |
| Swahili | 50.0% | 37.7% |
| Arabic | 46.2% | 30.1% |
| Spanish | 52.9% | 26.9% |
| The same weights, deployed | WMDP-bio |
|---|---|
| Full precision | 33.2% |
| Real Q4_0 file (llama.cpp) | 33.1% |
| Real Q4_K_M file (llama.cpp) | 33.7% |
| Through an outdated tokenizer setting | 34.3% |
| After 25 fine-tuning steps on 64 held-out hazard questions | 52.1% (from 32.7% on the same 1204 questions) |
What to know before using it
- The forgetting is broader than the hazard. Benign biology drops from 65.4% to 57.5%.
- Fine-tuning can undo it. Across the ten final runs, 25 fine-tuning steps on the topic raised the score by 5 points or more on five; the last row above shows this model. RMU hides knowledge more than it removes it.
- Knowledge was measured by multiple choice, not by open generation.
- Check the file you ship, and the tokenizer you load. In this project, a few unlearned runs regained 5 to 8 points in one 4-bit format while other formats of the same weights held (on Fire and Water, one exploratory run each). The files in this repository were each scored. Models unlearned through the outdated tokenizer setting at SafeTune's default layers regained 11.4 points on average once loaded through the official tokenizer; this model was unlearned through the official one, and through the outdated setting it scores as the table shows.
- A second run with another seed (base_W3-5_lr6e-05_s33) scored 39.2% on WMDP-bio and 56.8% on MMLU. This repository holds the run with the lower WMDP-bio.
How it was made
SafeTune RMU, official tokenizer, layers 3 to 5, steering 3 Γ the activation norm, retain weight 100, 300 batches of 4, run base_W3-5_lr6e-05_s34. Layers 3 to 5 are the window that CircuitKIT's attribution ranks first when pooled over the five Tiny Aya models. Two registered tests compared them with SafeTune's default layers 5 to 7: they forgot more within 3 MMLU points in 9 of 10 comparisons (p = 0.011), and in 8 of 10 on fresh seeds (p = 0.055, short of our own line; the two exceptions are Tiny Aya Base). They cost more benign biology, about the same per hazard point forgotten. Unlearned through the outdated tokenizer setting, default-layer runs relapsed through the official tokenizer in 16 of 16 runs that count and layers 3 to 5 in 0 of 16, on the four post-trained variants; Tiny Aya Base rose at every window (8.5 to 11.6 points at layers 3 to 5). The default-layer runs had also lost more than 3 MMLU points where they were audited, so the layer is not shown to be the reason; scored again with single-line prompts, none of them relapsed. The pre-registrations, every run's scores and the paper are in the repository.
License
CC-BY-NC-4.0, the license of the original model. Use is also subject to Cohere's terms for Tiny Aya.
- Downloads last month
- 152
Model tree for itssaharsh/relapse-tiny-aya-base-unlearn-bio
Base model
CohereLabs/tiny-aya-base