Instructions to use noisebridge/qwen3.8-27b-taiwan-pilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="noisebridge/qwen3.8-27b-taiwan-pilled") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("noisebridge/qwen3.8-27b-taiwan-pilled") model = AutoModelForMultimodalLM.from_pretrained("noisebridge/qwen3.8-27b-taiwan-pilled", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use noisebridge/qwen3.8-27b-taiwan-pilled 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 noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Use Docker
docker model run hf.co/noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
- LM Studio
- Jan
- vLLM
How to use noisebridge/qwen3.8-27b-taiwan-pilled with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "noisebridge/qwen3.8-27b-taiwan-pilled" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "noisebridge/qwen3.8-27b-taiwan-pilled", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
- SGLang
How to use noisebridge/qwen3.8-27b-taiwan-pilled 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 "noisebridge/qwen3.8-27b-taiwan-pilled" \ --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": "noisebridge/qwen3.8-27b-taiwan-pilled", "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 "noisebridge/qwen3.8-27b-taiwan-pilled" \ --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": "noisebridge/qwen3.8-27b-taiwan-pilled", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Ollama:
ollama run hf.co/noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
- Unsloth Desktop
- Pi
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Docker Model Runner:
docker model run hf.co/noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
- Lemonade
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Run and chat with the model
lemonade run user.qwen3.8-27b-taiwan-pilled-UD-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use noisebridge/qwen3.8-27b-taiwan-pilled with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
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 noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use noisebridge/qwen3.8-27b-taiwan-pilled with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M
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 "noisebridge/qwen3.8-27b-taiwan-pilled:UD-Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
qwen3.8-27b-taiwan-pilled
Qwen3.8-27B (bf16 and a 4bit quant) fine-tuned to discuss Taiwan — its history, sovereignty, and democracy — and topics the Chinese Communist Party censors: the 1989 Tiananmen Square protests and massacre, the persecution of Uyghurs, Tibet, Falun Gong, the 2019 Hong Kong protests, and censorship in China.
This is a values-alignment model with an explicit editorial stance. It presents Taiwan affirmatively as a sovereign, democratic country (its own government, constitution, military, and territory — never governed by the PRC), supports the Taiwanese people's right to self-determination, and treats the documented historical record as authoritative over official PRC claims wherever they conflict. Contested positions are described accurately as claims; the underlying facts come from cited sources, and the corpus rules prohibit fabricated facts, slurs, and calls to violence.
Trained with Unsloth LoRA (rank 16) on the noisebridge/pro-taiwan corpus — 3,346 bilingual (English / Mandarin) chat transcripts grounded in Wikipedia and third-party reporting (2,846 focused + 500 general-purpose), with a ~15% general-purpose mix to preserve normal behavior. General-purpose capability (coding, math, writing) is unchanged from the base model.
This revision was retrained 2026-10-11 on the refreshed corpus (2,846 focused rows; the original release used 2,841). The corpus now includes synthetic private reasoning blocks (478 rows); these are parsed into the chat template's think slot during training, so the model reasons briefly in the conversation language inside the think block before answering.
Files
| Path | What it is |
|---|---|
qwen3.8-27b-taiwan-pilled-UD-Q4_K_M.gguf |
4-bit GGUF, Unsloth Dynamic Q4_K_M profile — the same per-tensor quantization recipe as unsloth/Qwen3.8-27B-GGUF, reproduced using their published imatrix_unsloth.gguf and per-tensor type map. Drop-in replacement for Qwen3.8-27B-UD-Q4_K_M.gguf. |
LoRA/ |
The LoRA adapter (rank 16), PEFT-compatible |
| Root files | Merged bf16 checkpoint (full model, transformers/safetensors) |
Vision and MTP are unchanged from the base model — the LoRA only touched the language model's linear layers. This repo intentionally ships no mmproj or MTP files: your existing Qwen3.8-27B vision projector (e.g. 8-bit mmproj) and MTP module GGUFs from the base model's quant repos work with this model as-is.
Recommended inference
Same as base Qwen3.8-27B:
- Thinking mode:
temperature=1.0,top_p=0.95,top_k=20,min_p=0.0 - Instruct (non-thinking) mode:
temperature=0.7,top_p=0.80,top_k=20,min_p=0.0,presence_penalty=1.5
llama-server -m qwen3.8-27b-taiwan-pilled-UD-Q4_K_M.gguf --ctx-size 32768
Training details
- Base: Qwen/Qwen3.8-27B (bf16), trained on a single H100 PCIe (Lambda Cloud)
- LoRA: rank 16, alpha 16, all attention + MLP projections of the language model (vision tower and MTP untouched), dropout 0
- 2 epochs, lr 2e-4 cosine, effective batch 16, max seq 8192, 420 optimizer steps, 3.3M training tokens
- Loss on assistant responses only (train_on_responses_only, ChatML)
- Dataset: noisebridge/pro-taiwan (train.jsonl + general.jsonl, ~15% general mix)
Quantization details
The GGUF replicates the Unsloth Dynamic Q4_K_M profile exactly:
- Merged bf16 checkpoint converted with llama.cpp
convert_hf_to_gguf - Quantized with
llama-quantize --imatrix imatrix_unsloth.gguf --tensor-type-file <map>where the map is the per-tensor quantization table extracted from unsloth's publishedQwen3.8-27B-UD-Q4_K_M.gguf(Q4_K/Q5_K/Q6_K/IQ4_XS/Q8_0 mix + F32 linear-attention state weights) - Verified: the output's per-tensor type map is bit-identical to the reference (866/866 tensors match)
License
Apache 2.0 (see LICENSE), inheriting from the Apache-2.0 Qwen3.8-27B base. The training corpus is licensed separately (CC BY-SA 4.0) at its own repo.
- Downloads last month
- 154
Model tree for noisebridge/qwen3.8-27b-taiwan-pilled
Base model
Qwen/Qwen3.8-27B