初始化项目,由ModelHub XC社区提供模型
Model: microsoft/HARC-Llama-3.1-8B-Instruct Source: Original Platform
This commit is contained in:
21
README.md
Normal file
21
README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
license: llama3.1
|
||||
base_model: meta-llama/Llama-3.1-8B-Instruct
|
||||
base_model_relation: merge
|
||||
library_name: transformers
|
||||
pipeline_tag: text-generation
|
||||
tags:
|
||||
- safety
|
||||
- alignment
|
||||
---
|
||||
|
||||
# HARC — Llama-3.1-8B-Instruct
|
||||
|
||||
HARC safety-alignment LoRA merged into `meta-llama/Llama-3.1-8B-Instruct` (full standalone model).
|
||||
Part of the [HARC](https://github.com/microsoft/HARC) release; see paper arXiv:2607.00572.
|
||||
|
||||
```python
|
||||
from transformers import AutoModelForCausalLM, AutoTokenizer
|
||||
model = AutoModelForCausalLM.from_pretrained("microsoft/HARC-Llama-3.1-8B-Instruct", torch_dtype="bfloat16", device_map="auto")
|
||||
tok = AutoTokenizer.from_pretrained("microsoft/HARC-Llama-3.1-8B-Instruct")
|
||||
```
|
||||
Reference in New Issue
Block a user