Text Generation
Transformers
Safetensors
English
Chinese
qwen3_5_moe
image-text-to-text
qwen3.5
Mixture of Experts
4-bit precision
int4
auto-round
gptq
quantized
abliterated
dgx-spark
dflash
vllm
conversational
Instructions to use YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound") 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("YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound") model = AutoModelForMultimodalLM.from_pretrained("YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound", 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
- vLLM
How to use YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound
- SGLang
How to use YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound 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 "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound" \ --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": "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound", "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 "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound" \ --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": "YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound with Docker Model Runner:
docker model run hf.co/YuYu1015/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated-int4-AutoRound
Update README.md
Browse files
README.md
CHANGED
|
@@ -129,25 +129,6 @@ vllm serve /path/to/model \
|
|
| 129 |
- `--performance-mode interactivity` enables latency-optimized CUDA graphs and kernels
|
| 130 |
- Clear page cache before starting on UMA: `sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'`
|
| 131 |
|
| 132 |
-
### Reproduce Quantization
|
| 133 |
-
|
| 134 |
-
**Environment:** `nvcr.io/nvidia/pytorch:26.03-py3` with `auto-round==0.12.2`
|
| 135 |
-
|
| 136 |
-
```bash
|
| 137 |
-
auto-round \
|
| 138 |
-
--model_name /path/to/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated \
|
| 139 |
-
--output_dir /path/to/output \
|
| 140 |
-
--bits 4 \
|
| 141 |
-
--group_size 128 \
|
| 142 |
-
--iters 200 \
|
| 143 |
-
--nsamples 512 \
|
| 144 |
-
--seqlen 2048 \
|
| 145 |
-
--format auto_round \
|
| 146 |
-
--ignore_layers shared_expert,shared_expert_gate,mtp.fc,linear_attn
|
| 147 |
-
```
|
| 148 |
-
|
| 149 |
-
Quantization took approximately 4 hours on a single NVIDIA DGX Spark (GB10).
|
| 150 |
-
|
| 151 |
### Safety Warning
|
| 152 |
|
| 153 |
This model has safety filtering removed (abliterated) and may generate inappropriate content. Users are solely responsible for all consequences arising from its use. Please ensure usage complies with local laws and ethical standards.
|
|
@@ -243,25 +224,6 @@ This model has safety filtering removed (abliterated) and may generate inappropr
|
|
| 243 |
- `--performance-mode interactivity` 啟用延遲最佳化的 CUDA graphs 和 kernel
|
| 244 |
- UMA 架構啟動前請先清除 page cache:`sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'`
|
| 245 |
|
| 246 |
-
### 量化指令
|
| 247 |
-
|
| 248 |
-
**環境:** `nvcr.io/nvidia/pytorch:26.03-py3` + `auto-round==0.12.2`
|
| 249 |
-
|
| 250 |
-
```bash
|
| 251 |
-
auto-round \
|
| 252 |
-
--model_name /path/to/Huihui-Qwen3.5-35B-A3B-Claude-4.6-Opus-abliterated \
|
| 253 |
-
--output_dir /path/to/output \
|
| 254 |
-
--bits 4 \
|
| 255 |
-
--group_size 128 \
|
| 256 |
-
--iters 200 \
|
| 257 |
-
--nsamples 512 \
|
| 258 |
-
--seqlen 2048 \
|
| 259 |
-
--format auto_round \
|
| 260 |
-
--ignore_layers shared_expert,shared_expert_gate,mtp.fc,linear_attn
|
| 261 |
-
```
|
| 262 |
-
|
| 263 |
-
在單台 NVIDIA DGX Spark (GB10) 上量化,耗時約 4 小時。
|
| 264 |
-
|
| 265 |
### 安全警告
|
| 266 |
|
| 267 |
此模型已移除安全過濾機制(abliterated),可能產生敏感、爭議性或不當內容。使用者須自行承擔所有風險與法律責任,並確保使用方式符合當地法規與倫理標準。
|
|
|
|
| 129 |
- `--performance-mode interactivity` enables latency-optimized CUDA graphs and kernels
|
| 130 |
- Clear page cache before starting on UMA: `sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'`
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
### Safety Warning
|
| 133 |
|
| 134 |
This model has safety filtering removed (abliterated) and may generate inappropriate content. Users are solely responsible for all consequences arising from its use. Please ensure usage complies with local laws and ethical standards.
|
|
|
|
| 224 |
- `--performance-mode interactivity` 啟用延遲最佳化的 CUDA graphs 和 kernel
|
| 225 |
- UMA 架構啟動前請先清除 page cache:`sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'`
|
| 226 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
### 安全警告
|
| 228 |
|
| 229 |
此模型已移除安全過濾機制(abliterated),可能產生敏感、爭議性或不當內容。使用者須自行承擔所有風險與法律責任,並確保使用方式符合當地法規與倫理標準。
|