Instructions to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800") model = AutoModelForMultimodalLM.from_pretrained("zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 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 zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0 # Run inference directly in the terminal: llama cli -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0 # Run inference directly in the terminal: llama cli -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
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 zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
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 zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
Use Docker
docker model run hf.co/zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
- LM Studio
- Jan
- vLLM
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
- SGLang
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 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 "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800" \ --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": "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800", "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 "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800" \ --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": "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Ollama:
ollama run hf.co/zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
- Unsloth Studio
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 to start chatting
- Pi
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
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 "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0" \ --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"
- Docker Model Runner
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Docker Model Runner:
docker model run hf.co/zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
- Lemonade
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
Run and chat with the model
lemonade run user.huihui-qwen35-4b-roleplay-qlora-ms2048-s800-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
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 zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800:Q8_0
Run Hermes
hermes
- Atomic Chat
Huihui Qwen3.5-4B Roleplay QLoRA ms2048 s800
This repository publishes a local QLoRA continuation of
huihui-ai/Huihui-Qwen3.5-4B-Claude-4.6-Opus-abliterated
trained on filtered Japanese roleplay data. It includes:
- merged BF16 Transformers safetensors with descriptive shard names
- Q8_0 GGUF for llama.cpp/KoboldCpp-style runtimes
- the PEFT LoRA adapter under
adapter/ - tokenizer files and the ChatML template used for training/evaluation
- training, validation, and EasyNovelAssistant smoke-test evidence
Artifact Names
The publish names intentionally avoid generic local export names:
| file | purpose |
|---|---|
huihui-qwen35-4b-roleplay-qlora-ms2048-s800-q8_0.gguf |
Q8_0 GGUF runtime artifact |
huihui-qwen35-4b-roleplay-qlora-ms2048-s800-bf16-00001-of-00006.safetensors ... 00006-of-00006.safetensors |
merged BF16 Transformers shards |
model.safetensors.index.json |
Transformers index mapping weights to the renamed BF16 shard files |
adapter/adapter_model.safetensors |
standard PEFT LoRA adapter filename for compatibility |
Training Data
Primary dataset:
Dataset/license note:
- The dataset card identifies the data as CC-BY-NC-SA 4.0 and states additional Anthropic terms restricting use to develop models that compete with Anthropic services or models. Treat this release as non-commercial and bound by the upstream dataset terms.
- The base model card identifies the base model license as Apache-2.0.
Local data/filter accounting:
| source | rows before | rows after adult-consent filter | rows after length filter |
|---|---|---|---|
| local parquet mirror of the Aratako dataset | 15,264 | 9,582 | 5,909 |
| extra local JSONL source | 1,000 | 0 | 0 |
| total | 16,264 | 9,582 | 5,909 |
The extra local JSONL source contributed zero training rows after the adult-consent safety filter. It is not included as trained data in this release.
Train/eval split:
- train rows: 5,731
- eval rows: 178
Length/curriculum:
- model
max_seq_length: 2048 - training curriculum cap: 1152 rendered tokens
- token length mean: 918.97
- token length p50/p90/p95/p99/max: 949 / 1093 / 1121 / 1146 / 1152
- rows over
max_seq_length: 0 - mojibake-suspect rows: 0
Training Configuration
| field | value |
|---|---|
| base model | huihui-ai/Huihui-Qwen3.5-4B-Claude-4.6-Opus-abliterated |
| tokenizer | Qwen3.5 tokenizer, local mirror of H:/Qwen3.5-9B-official-hf |
| method | Unsloth QLoRA SFT |
| LoRA rank / alpha | 16 / 32 |
| learning rate | 8e-5 |
| max steps | 800 |
| epoch reached | 0.1395916942941895 |
| trainable parameters | 21,233,664 of 4,560,499,200, about 0.47% |
| safety filter | adult-consent lexical guardrail |
Validation:
eval_loss: 1.2786273956298828eval_runtime: 701.1729 secondseval_samples_per_second: 0.254- recorded at step 800
Prompt Template
Training and the EasyNovelAssistant smoke test used ChatML/Qwen-style wrapping.
Use the included chat_template.jinja or this equivalent shape:
<|im_start|>system
あなたは日本語で自然な小説文を続けるアシスタントです。本文だけを書き、思考過程、英語、箇条書き、タグ、メタ説明を出さないでください。<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>assistant
Recommended stop strings:
<|im_end|>
<|endoftext|>
<|end_of_text|>
<|end|>
<|im_start|>user
<|im_start|>system
Smoke-test sampler:
| field | value |
|---|---|
| temperature | 0.55 |
| top_p | 0.9 |
| top_k | 40 |
| min_p | 0.02 |
| repetition penalty | 1.08 |
| max new tokens | 192 |
GGUF Verification
Q8_0 GGUF:
- file:
huihui-qwen35-4b-roleplay-qlora-ms2048-s800-q8_0.gguf - size: 4,482,410,272 bytes
- SHA256:
446723801C57DB417B255C90A068A39604400195DE1B97EE7B151A864434859B
GGUF metadata readback:
| key | value |
|---|---|
general.architecture |
qwen35 |
general.file_type |
7 |
general.quantization_version |
2 |
qwen35.block_count |
32 |
qwen35.context_length |
262144 |
qwen35.embedding_length |
2560 |
| tensor count | 426 |
| tensor types | 8:249, 0:177 |
EasyNovelAssistant Smoke Test
The Q8_0 GGUF was loaded through the local EasyNovelAssistant
KoboldCpp.generate path on a temporary port with a safe Japanese writing
prompt. Checks passed:
- prompt preserved
- non-empty Japanese output
- no
<think>tag - no ChatML marker leakage
- no obvious mojibake
- no encoding-refusal response
Evidence file:
eval/easynovel_s800_safe_prompt_eval.json
Usage
Transformers BF16
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800"
tokenizer = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo,
trust_remote_code=True,
device_map="auto",
)
PEFT Adapter
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "huihui-ai/Huihui-Qwen3.5-4B-Claude-4.6-Opus-abliterated"
repo = "zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800"
tokenizer = AutoTokenizer.from_pretrained(f"{repo}/adapter")
model = AutoModelForCausalLM.from_pretrained(base, trust_remote_code=True)
model = PeftModel.from_pretrained(model, f"{repo}/adapter")
llama.cpp / KoboldCpp GGUF
Use:
huihui-qwen35-4b-roleplay-qlora-ms2048-s800-q8_0.gguf
with the ChatML template above.
Safety and Scope
This is an adult-oriented Japanese roleplay fine-tune. It is not intended for
use with minors, non-consensual sexual content, or illegal activity. The local
training script applied an adult-consent lexical filter before SFT and
excluded the extra local JSONL source completely.
The smoke test verifies loadability and basic Japanese generation cleanliness; it is not a broad benchmark or a guarantee of generalization.
- Downloads last month
- 171
Model tree for zapabobouj/huihui-qwen35-4b-roleplay-qlora-ms2048-s800
Base model
Qwen/Qwen3.5-4B-Base