Downloads · 30 days
44
14% of all-time downloads
ZeroLoss-Lab/Innospark-72b-safety
Innospark-72b-safety is a text generation model from ZeroLoss-Lab. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
本模型是 InnoSpark-Safety 教育场景大语言模型安全框架中的安全对齐底座模型。该框架围绕用户输入、模型生成与服务化调用三个环节,提供前置拦截、安全对齐、后置审核与 OpenAI 兼容 API 代理能力。
Downloads · 30 days
44
14% of all-time downloads
All-time downloads
316
Public
Parameters
72.7B
145 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors145 GB · 100%
From the Hugging Face model README
本模型是 InnoSpark-Safety 教育场景大语言模型安全框架中的安全对齐底座模型。该框架围绕用户输入、模型生成与服务化调用三个环节,提供前置拦截、安全对齐、后置审核与 OpenAI 兼容 API 代理能力。
本仓库包含一个基于 Qwen/Qwen2.5-72B、通过强化学习(RL)训练得到的安全对齐 72B 参数因果语言模型检查点。
| 属性 | 值 |
|---|---|
| 架构 | Qwen2ForCausalLM |
| 基座模型 | Qwen/Qwen2.5-72B |
| 隐藏层维度 | 8192 |
| 层数 | 80 |
| 注意力头(GQA) | 64 query / 8 key-value |
| FFN 中间维度 | 29568 |
| 词表大小 | 152064 |
| 上下文长度 | 32768 |
| 滑动窗口 | 131072 |
| 权重类型 | bfloat16 |
| 格式 | Safetensors(31 个分片,约 145 GB) |
config.json、generation_config.json、tokenizer_config.jsontokenizer.json、vocab.json、merges.txt、added_tokens.json、special_tokens_map.jsonmodel.safetensors.index.jsonmodel-00001-of-00031.safetensors ... model-00031-of-00031.safetensors.gitattributesfrom transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "ZeroLoss-Lab/Innospark-72b-safety"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, what can you do?"},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
response = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
print(response)
本模型采用 Apache-2.0 许可证发布。