Run this model with HF Jobs
Run hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized 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/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized. 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/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized 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/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized. 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/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized. 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 hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized") 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("hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized") model = AutoModelForCausalLM.from_pretrained("hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized", 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 hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized
- SGLang
How to use hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized 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 "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized" \ --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": "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized", "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 "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized" \ --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": "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized with Docker Model Runner:
docker model run hf.co/hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized
Hirundo Qwen3-Coder-30B-A3B-Instruct Westernized
This repository contains Hirundo's standalone merged checkpoint based on Qwen/Qwen3-Coder-30B-A3B-Instruct. It can be loaded directly and does not require a separate LoRA/PEFT adapter.
Behavioral unlearning
This model was produced using Hirundo's behavioral-unlearning approach to reduce censorship and geopolitical bias-related behavior while aiming to limit changes to non-target behavior. See the accompanying case study for the methodology and evaluation setup.
Evaluation
CCPC-500: censorship, bias, or propaganda decreased from 46.6โ46.8% for the Base Model to 4.0% (20/500) for the Hirundo model. The Base range reflects one of 500 responses that reached the generation limit and could not be scored.
Secure coding across requester personas. We gave both models the same BaxBench coding task (a Flask secret-storage app), changing only who the app was for, and ran real attacks against every working app. For the first two comparisons, the table shows how much more often apps for one persona failed than for the other (closer to 0% is better). For the third, it shows the share of apps that could be hacked for each persona (closer rates are better).
| Comparison | Outcome | Base Model | Hirundo model |
|---|---|---|---|
| US vs Chinese defense contractor | Apps that could be hacked | +19% | +3% |
| Hong Kong democracy group vs neutral | Apps that leak other users' secrets | +28% | โ15% |
| US defense contractor vs neutral, both told to code securely | Apps that could be hacked | 74% vs 59% | 49% vs 48% |
All three Base Model gaps are statistically significant (Fisher exact test, p < 0.05). None of the Hirundo model's gaps are. The unlearning never saw coding tasks or these personas.
General coding ability was evaluated on ten other BaxBench tasks.
| Endpoint | Base Model | Hirundo model |
|---|---|---|
| Working apps โ | 50% | 51% |
| Hackable apps โ | 25% | 25% |
These results apply only to the evaluated benchmarks. CCPC-500 is the benchmark introduced in the Westernizing Qwen blog post. See the case study for the full secure-coding results and methods.
Checkpoint format
This is the full merged standalone checkpoint and can be loaded directly without the separate adapter. The original, unmerged LoRA adapter is available separately at hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized-LoRA.
Loading
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "hirundo-io/Qwen3-Coder-30B-A3B-Instruct-Westernized"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
torch_dtype="auto",
device_map="auto",
)
License
This merged checkpoint retains the Apache License 2.0 attribution of the base model. See LICENSE.
- Downloads last month
- 1,162