FFZwai commited on
Commit
fe9dffe
·
verified ·
1 Parent(s): 7efabd2

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +94 -18
README.md CHANGED
@@ -1,33 +1,109 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  tags:
4
- - leyoai
5
- - qwen2.5
6
- - lora
7
- - flow
8
- base_model: Qwen/Qwen2.5-1.5B-Instruct
 
9
  ---
10
 
11
- # leyoai-flow-medium
12
 
13
- LeyoAI Flow规模模型 - 流程自动化助手 - Workflow Automation AI Assistant
14
- Base: Qwen2.5-1.5B-Instruct + LoRA (LoRA r=16, ~3K samples)
15
 
16
- ## About LeyoAI
 
 
 
17
 
18
- LeyoAI is a vertical AI MaaS platform by 杭州市上城区乐友信息服务工作室, providing four AI assistants:
19
- - **Cyber Model**: AI Security Assistant
20
- - **Video Model**: Video Safety Assistant
21
- - **Flow Model**: Workflow Automation Assistant
22
- - **Analytics Model**: Data Analytics Assistant
23
 
24
- ## Usage
 
 
 
25
 
 
26
  ```python
 
27
  from peft import PeftModel
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  from transformers import AutoModelForCausalLM, AutoTokenizer
 
 
 
 
 
 
 
 
29
 
30
- base = AutoModelForCausalLM.from_pretrained('Qwen/Qwen2.5-1.5B-Instruct')
31
- tokenizer = AutoTokenizer.from_pretrained('Qwen/Qwen2.5-1.5B-Instruct')
32
- model = PeftModel.from_pretrained(base, 'FFZwai/leyoai-flow-medium')
 
 
33
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ - zh
6
  tags:
7
+ - workflow-automation
8
+ - process-automation
9
+ - qwen2.5
10
+ - lora
11
+ - leyoai
12
+ base_model: Qwen/Qwen2.5-3B-Instruct
13
  ---
14
 
15
+ # LeyoAI Flow Automation Assistant (Medium)
16
 
17
+ English | [文](#中文)
 
18
 
19
+ ## English
20
+
21
+ ### Model Description
22
+ Enhanced workflow automation and classification assistant
23
 
24
+ ### Installation
25
+ ```bash
26
+ pip install transformers peft torch
27
+ ```
 
28
 
29
+ ### Usage Scenarios
30
+ - Workflow classification
31
+ - Process automation
32
+ - Task routing
33
 
34
+ ### How to Use
35
  ```python
36
+ from transformers import AutoModelForCausalLM, AutoTokenizer
37
  from peft import PeftModel
38
+
39
+ # Load base model
40
+ base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
41
+ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
42
+
43
+ # Load LoRA adapter
44
+ model = PeftModel.from_pretrained(base_model, "FFZwai/leyoai-flow-medium")
45
+
46
+ # Generate response
47
+ input_text = "Your question here"
48
+ inputs = tokenizer(input_text, return_tensors="pt")
49
+ outputs = model.generate(**inputs, max_length=512)
50
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
51
+ ```
52
+
53
+ ### Training Details
54
+ - **Base Model**: Qwen/Qwen2.5-3B-Instruct
55
+ - **LoRA Rank**: 16
56
+ - **Training Data**: 3,500 samples
57
+ - **Validation Data**: 175 samples
58
+ - **Framework**: QLoRA + SFTTrainer
59
+
60
+ ---
61
+
62
+ ## 中文
63
+
64
+ ### 模型描述
65
+ 增强版流程自动化和分类助手
66
+
67
+ ### 安装方法
68
+ ```bash
69
+ pip install transformers peft torch
70
+ ```
71
+
72
+ ### 使用场景
73
+ - 工作流分类
74
+ - 流程自动化
75
+ - 任务路由
76
+
77
+ ### 使用方法
78
+ ```python
79
  from transformers import AutoModelForCausalLM, AutoTokenizer
80
+ from peft import PeftModel
81
+
82
+ # 加载基座模型
83
+ base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
84
+ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
85
+
86
+ # 加载 LoRA 适配器
87
+ model = PeftModel.from_pretrained(base_model, "FFZwai/leyoai-flow-medium")
88
 
89
+ # 生成回复
90
+ input_text = "你的问题"
91
+ inputs = tokenizer(input_text, return_tensors="pt")
92
+ outputs = model.generate(**inputs, max_length=512)
93
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
94
  ```
95
+
96
+ ### 训练细节
97
+ - **基座模型**: Qwen/Qwen2.5-3B-Instruct
98
+ - **LoRA Rank**: 16
99
+ - **训练数据**: 3,500 samples
100
+ - **验证数据**: 175 samples
101
+ - **训练框架**: QLoRA + SFTTrainer
102
+
103
+ ---
104
+
105
+ ## About LeyoAI
106
+
107
+ LeyoAI is an AI MaaS platform by 杭州市上城区乐友信息服务工作室, providing specialized AI assistants for cybersecurity, video safety, workflow automation, and data analytics.
108
+
109
+ **Website**: https://leyoai.vercel.app