Run this model with HF Jobs
Run aymous/Undo-able-4B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/aymous/Undo-able-4B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aymous/Undo-able-4B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/aymous/Undo-able-4B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/aymous/Undo-able-4B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use aymous/Undo-able-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aymous/Undo-able-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aymous/Undo-able-4B") 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("aymous/Undo-able-4B") model = AutoModelForCausalLM.from_pretrained("aymous/Undo-able-4B", 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
- vLLM
How to use aymous/Undo-able-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aymous/Undo-able-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aymous/Undo-able-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aymous/Undo-able-4B
- SGLang
How to use aymous/Undo-able-4B 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 "aymous/Undo-able-4B" \ --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": "aymous/Undo-able-4B", "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 "aymous/Undo-able-4B" \ --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": "aymous/Undo-able-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aymous/Undo-able-4B with Docker Model Runner:
docker model run hf.co/aymous/Undo-able-4B
Download README.md from aymous/Undo-able-4B: direct link, hf CLI and curl.
- Browser
- Download file 2.17 kB
-
https://huggingface.co/aymous/Undo-able-4B/resolve/main/README.md
- Command line
-
hf download hf://aymous/Undo-able-4B/README.md
-
curl -L -o README.md https://huggingface.co/aymous/Undo-able-4B/resolve/main/README.md
base_model: Qwen/Qwen3-4B-Instruct-2507
license: apache-2.0
library_name: transformers
pipeline_tag: text-generation
tags:
- halo
- white-circle-halo-competition
- agents
- tool-use
- safety
- grpo
datasets:
- aymous/Undo-able-sft
- aymous/undoable-grpo-pool-s4000
- aymous/Undo-able-eval
Undo-able-4B
Made for the White Circle Halo Competition (track ft-hf). Writeup: https://huggingface.co/spaces/aymous/Undo-able-4B.
Qwen3-4B-Instruct-2507 trained with Halo to do ops chores (shell, SQL) without destroying data it wasn't asked to touch: back up before a destructive step, ask when the request needs it and not otherwise, stay in scope, and report honestly what changed. LoRA SFT, then environment GRPO against a deterministic grader; this is the GRPO step-220 adapter merged into the SFT model.
Results (Safe Success, mean of 3 seeds)
| Eval split (aymous/Undo-able-eval) | Base | Undo-able-4B | Qwen3-235B-A22B |
|---|---|---|---|
| unseen (209: invented CLIs + incident scenarios) | 10.7% | 19.5% | 14.4% |
| heldout (200: procedural held-out splits) | 15.0% | 14.7% | 22.0% |
| in_distribution (140: training templates, new worlds) | 22.1% | 63.8% | 34.0% |
Unrecoverable data loss on unseen: 18.0% → 15.3%. Full tables, method and limits are in the writeup.
Use
It expects the tool set of Halo's undoable environment (sh, sql, cloud, ask_user) and the system prompt in halo/environments/tasks/ops/prompts.py. Evaluate with:
python scripts/environments/inference/eval_undoable.py --dataset aymous/Undo-able-eval --split unseen --backend transformers --model aymous/Undo-able-4B --num_examples 0 --max_tokens 4096 --max_turns 12 --temperature 0.6 --seeds 0 1 2 --max_workers 8 --summary_path runs/undoable-eval/unseen.json
Limits
Trained and tested only in simulated worlds; do not give it unsupervised write access to real systems. It over-asks on held-out filesystem/SQL families, and cloud and unseen-CLI tasks stay hard (about 11–13% Safe Success). No general-capability regression check was run.