devon-ai commited on
Commit
7d82f00
·
verified ·
1 Parent(s): 470f6f9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +61 -0
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: Qwen/Qwen2.5-7B-Instruct
4
+ tags:
5
+ - lora
6
+ - qwen2.5
7
+ - agent
8
+ - tool-calling
9
+ - gguf
10
+ - local-llm
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ # DevonAI Dev0.1 (7B)
15
+
16
+ 基於 Qwen2.5-7B-Instruct 以 LoRA(r=16)微調的本地智能體模型,內化 DevonAI 的工具呼叫協定,可在消費級電腦上以 node-llama-cpp 或 Ollama 執行。由 DevonAI 專案訓練管線產生(Kaggle 免費 T4 GPU)。
17
+
18
+ ## 訓練資訊
19
+
20
+ | 項目 | 值 |
21
+ | --- | --- |
22
+ | 基座模型 | Qwen/Qwen2.5-7B-Instruct (unsloth-bnb-4bit) |
23
+ | 微調方式 | LoRA r=16, alpha=16, dropout=0.05, 4-bit QLoRA |
24
+ | 訓練資料 | 2,000 筆合成對話(1,749 train / 251 val) |
25
+ | Epochs / Steps | 3 epochs / 375 steps |
26
+ | Learning rate | 2e-4(cosine, warmup 10) |
27
+ | 訓練平台 | Kaggle Notebooks, T4 x2 16GB |
28
+ | 量化 | Q4_K_M(4.68 GB) |
29
+
30
+ 訓練目標為讓模型穩定遵循 DevonAI 的工具協定,例如:
31
+
32
+ {"tool": "terminal", "args": {"command": "ls -la"}}
33
+ {"tool": "file", "args": {"action": "read", "path": "src/index.ts"}}
34
+
35
+ ## 檔案
36
+
37
+ - dev0.1-q4_k_m.gguf — 主模型(Q4_K_M,4.68GB)
38
+ - lora/ — LoRA 權重(可續訓)
39
+ - training_config.yaml — 訓練超參數
40
+
41
+ ## 使用方式
42
+
43
+ ### node-llama-cpp(DevonAI CLI)
44
+
45
+ node dist/index.js -b local -m dev0.1-q4_k_m.gguf "你的問題"
46
+
47
+ ### Ollama
48
+
49
+ 建立 Modelfile(將 USER 換成你的 HF 帳號)後執行 ollama create dev0.1 -f Modelfile:
50
+
51
+ FROM https://huggingface.co/USER/devonai-dev0.1-7b/resolve/main/dev0.1-q4_k_m.gguf
52
+ TEMPLATE """{{- if .System }}<|im_start|>system
53
+ {{ .System }}<|im_end|>
54
+ {{- end }}
55
+ {{- range .Messages }}
56
+ <|im_start|>{{ .Role }}
57
+ {{ .Content }}<|im_end|>
58
+ {{- end }}
59
+ <|im_start|>assistant"""
60
+ PARAMETER temperature 0.6
61
+ PARAMETER num_ctx 4096