Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: unsloth/DeepSeek-R1-Distill-Llama-8B
|
| 4 |
+
tags:
|
| 5 |
+
- text-generation
|
| 6 |
+
- frontend
|
| 7 |
+
- analysis
|
| 8 |
+
- requirements
|
| 9 |
+
- chinese
|
| 10 |
+
- lora
|
| 11 |
+
- peft
|
| 12 |
+
- sft
|
| 13 |
+
- trl
|
| 14 |
+
- unsloth
|
| 15 |
+
- conversational
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# analysis-llm-v1
|
| 20 |
+
|
| 21 |
+
这是一个基于 DeepSeek-R1-Distill-Llama-8B 微调的前端需求分析模型。
|
| 22 |
+
|
| 23 |
+
## 使用方法
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 27 |
+
import torch
|
| 28 |
+
|
| 29 |
+
model_name = "MANSTAGE/analysis-llm-v1"
|
| 30 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 31 |
+
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16)
|
| 32 |
+
|
| 33 |
+
# 推理代码...
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## 训练详情
|
| 37 |
+
|
| 38 |
+
- **基础模型**: unsloth/DeepSeek-R1-Distill-Llama-8B
|
| 39 |
+
- **训练数据**: 219条前端需求分析数据
|
| 40 |
+
- **训练步数**: 100步
|
| 41 |
+
- **LoRA配置**: r=16, alpha=16
|