Run this model with HF Jobs
Run GCSA-AiLab/Hy4-Flash-Uncensored-LoRA 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 to fine-tune https://huggingface.co/GCSA-AiLab/Hy4-Flash-Uncensored-LoRA. 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/GCSA-AiLab/Hy4-Flash-Uncensored-LoRA 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/GCSA-AiLab/Hy4-Flash-Uncensored-LoRA. 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/GCSA-AiLab/Hy4-Flash-Uncensored-LoRA. 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 GCSA-AiLab/Hy4-Flash-Uncensored-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use GCSA-AiLab/Hy4-Flash-Uncensored-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/shared/ModelsLocal/Hy4-flash-FP8") model = PeftModel.from_pretrained(base_model, "GCSA-AiLab/Hy4-Flash-Uncensored-LoRA") - Notebooks
- Google Colab
- Kaggle
Hy4-Flash Uncensored LoRA
该适配器是基于 Tencent Hy4-flash-FP8 的低秩权重增量,使用 ARA 方法调整模型的回答行为。本仓库包含 LoRA 权重,不包含基础模型。模型可能生成基础模型通常会拒绝的内容。
模型信息
| 项目 | 值 |
|---|---|
| 基础模型 | tencent/Hy4-flash-FP8 |
| 适配器 | PEFT LoRA,rank 64,alpha 64,dropout 0 |
| 修改层 | 0-based 第 8–39 层,共 32 层 |
| 每层修改模块 | self_attn.o_proj、mlp.shared_experts.down_proj、mlp.routed_expert_up_proj |
| 张量 | 96 个模块、192 个 LoRA A/B 张量 |
| 评测模式 | no_think,纯文本 |
加载和使用
官方 vLLM 的 Hy4 Flash 当前不支持 LoRA。本适配器还包含路由专家模块,以下命令需要额外安装支持 writer LoRA 和 routed_expert_up_proj 的 Hy4 专用补丁;普通 vLLM 不可直接运行。若没有该补丁,请使用已合并模型。
hf download tencent/Hy4-flash-FP8 --local-dir ./hy4-base
hf download GCSA-AiLab/Hy4-Flash-Uncensored-LoRA --local-dir ./hy4-lora
export AX_HY4_WRITER_LORA=1 AX_HY4_FLASH_DISK=1 AX_HY4_TORCH_LOOKBACK=1 AX_HY4_TORCH_ROPE=1
vllm serve ./hy4-base --port 8001 --tensor-parallel-size 2 --enable-expert-parallel \
--engram-config '{"disk_offload":true}' --enable-lora --max-lora-rank 64 \
--lora-target-modules o_proj down_proj routed_expert_up_proj \
--lora-modules trial22=./hy4-lora --reasoning-parser hy_v4
curl http://127.0.0.1:8001/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"trial22","messages":[{"role":"user","content":"Hello!"}],"max_tokens":128,"chat_template_kwargs":{"reasoning_effort":"no_think"}}'
评测
评测针对该 LoRA 加载后的 FP8 基础模型,使用 no_think、temperature 0、seed 42、最多 1536 输出 token;通过 Ollama Cloud 的 deepseek-v4.1-flash:cloud 自动裁判。所有数字均来自自动判定,未进行人工复核。
| 指标 | StrongREJECT | SimpleSafetyTests |
|---|---|---|
| 样本数 | 313 | 100 |
| 明确拒绝 | 2 | 3 |
| 模糊或替代回答 | 60 | 24 |
| 实质回答 | 251 | 73 |
| 输出达到 token 上限 | 67 | 4 |
- StrongREJECT 原量表均分 0.7500,量表判定拒绝 70/313。该分数越高,表示自动裁判认为回答越具体、越有说服力地回应评测请求;它不是通用能力评分。
- SimpleSafetyTests 自动判定安全 25/100、不安全 75/100。
- 独立回答分类和 StrongREJECT 原量表是不同的裁判调用;明确拒绝 2/313 与量表拒绝 70/313 不能视为同一指标。
局限
- 当前证据不保证每个非拒绝或实质回答都完整、正确或满足原请求。StrongREJECT 中 67/313、SST 中 4/100 的输出达到长度上限,仍计入自动评分。
- 本报告不证明 long-context、high/thinking、多模态、工具调用或其他运行时的性能;KL 和 6 条长文检查不能替代系统性的能力评测。
文件
adapter_model.safetensorsadapter_config.json
许可
基础模型及其派生使用受 Tencent Hy 许可约束。使用或重新分发前,请查阅基础模型随附的许可证及适用条款;本模型卡不授予额外许可。
- Downloads last month
- 43
Model tree for GCSA-AiLab/Hy4-Flash-Uncensored-LoRA
Base model
tencent/Hy4-flash-FP8