Instructions to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="itssaharsh/tiny-aya-global-unlearn-bio-default-layers") 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("itssaharsh/tiny-aya-global-unlearn-bio-default-layers") model = AutoModelForCausalLM.from_pretrained("itssaharsh/tiny-aya-global-unlearn-bio-default-layers", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers 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/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M # Run inference directly in the terminal: llama cli -hf itssaharsh/tiny-aya-global-unlearn-bio-default-layers: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/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M # Run inference directly in the terminal: llama cli -hf itssaharsh/tiny-aya-global-unlearn-bio-default-layers: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/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
Use Docker
docker model run hf.co/itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "itssaharsh/tiny-aya-global-unlearn-bio-default-layers" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "itssaharsh/tiny-aya-global-unlearn-bio-default-layers", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
- SGLang
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers 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/tiny-aya-global-unlearn-bio-default-layers" \ --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": "itssaharsh/tiny-aya-global-unlearn-bio-default-layers", "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 "itssaharsh/tiny-aya-global-unlearn-bio-default-layers" \ --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": "itssaharsh/tiny-aya-global-unlearn-bio-default-layers", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with Ollama:
ollama run hf.co/itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with Docker Model Runner:
docker model run hf.co/itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
- Lemonade
How to use itssaharsh/tiny-aya-global-unlearn-bio-default-layers with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull itssaharsh/tiny-aya-global-unlearn-bio-default-layers:Q4_K_M
Run and chat with the model
lemonade run user.tiny-aya-global-unlearn-bio-default-layers-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Tiny Aya Global, hazardous biology unlearned (Default layers)
Superseded Stage 1 artifact (status on 27 November 2026). This repository was made in the first round of the Lexsi AI Safety and Alignment Hackathon, on Kaggle, through an outdated tokenizer setting that splits text differently from the way Tiny Aya was trained. Every Stage 1 score and claim made from it is withdrawn, including the 4-bit relapse at layers 10 to 12 and its repair. Until 26 November 2026 (UTC) its
tokenizer_config.jsoncarried that setting (tokenizer_class: CohereTokenizerFast); on that date it was replaced with Cohere's fixed file (fromCohereLabs/tiny-aya-globalataf89d219b5), so the repository now loads with the official tokenizer. The Stage 1 results were made with revisiond5a7b12018of this repository, which keeps the outdated setting. Use the Stage 2 models instead: Global, Fire, Earth, Water, Base.
Rescored through the official tokenizer on 21 November 2026 (WMDP-bio / MMLU; the original scores 63.3% / 55.4% at fp16):
| fp16: 47.5% / 53.1% | Q4_K_M: 45.0% / 51.6% | Q4_0: 43.0% / 53.1% | NF4: 46.4% / 49.9% |
|---|
What the final paper found (An Outdated Tokenizer Setting Overstated Unlearning Applied at Layers 5–7 in 16 of 16 Runs, but Not at Layers 3–5 in Post-Trained Models). Runs unlearned and audited through an outdated tokenizer setting at SafeTune's default layers (5 to 7) regained 11.4 points on average once loaded through the official tokenizer, in 16 of 16 runs that count; those runs had also lost 5.8 MMLU points where they were audited and 1.7 once deployed, and with single-line prompts none of them relapsed. At layers 3 to 5, 0 of 16 did, on the four post-trained variants; Tiny Aya Base rose at every window. In 4-bit files the forgetting held in 107 of 109 effective runs. Of 25 registered hypotheses, 11 held, 2 held in part, 11 failed and 1 could not be tested.
What this repository holds
- Tiny Aya Global after SafeTune RMU unlearning of hazardous biology: layers 5 to 7, SafeTune's default. Trained and first scored through the outdated tokenizer setting.
- Files:
config.json,generation_config.json,model-00001-of-00002.safetensors,model-00002-of-00002.safetensors,model.safetensors.index.json,special_tokens_map.json,tiny-aya-global-unlearn-bio-default-layers-Q4_K_M.gguf,tokenizer.json,tokenizer_config.json.
Base model and tokenizer revision
Base model: CohereLabs/tiny-aya-global. The Stage 1 runs used the copy Kaggle Models held (cohere-labs/tiny-aya/transformers/global/1, uploaded 16 February 2026), which Kaggle identifies only as version 1 and which carries the outdated setting (tokenizer_class: CohereTokenizerFast). Cohere fixed the setting on Hugging Face on 30 September 2026 (revision af89d219b5 of the official repository).
The checker scripts/check_tokenizer.py, added with the paper, reports which setting a repository, folder or GGUF file carries and what to do about it, reading only its tokenizer file or GGUF header: python scripts/check_tokenizer.py itssaharsh/tiny-aya-global-unlearn-bio-default-layers.
The Stage 1 card of this repository, with its withdrawn description and scores, is kept at hf_updates/previous/, and the Stage 1 write-up at docs/archive/.
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
- 976