Skip to content

Commit f45e6de

Browse files
authored
feat(baichuan):add-baichuan-m3-models (#2433)
* feat(baichuan):add-baichuan-m3-models * feat(baichuan):add-baichuan-m3-model
1 parent cdd507d commit f45e6de

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

models/baichuan/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ resource:
2323
memory: 268435456
2424
permission: {}
2525
type: plugin
26-
version: 0.0.4
26+
version: 0.0.5
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
model: baichuan-m3
2+
label:
3+
en_US: Baichuan-M3
4+
model_type: llm
5+
features:
6+
- agent-thought
7+
model_properties:
8+
mode: chat
9+
context_size: 32000
10+
parameter_rules:
11+
- name: temperature
12+
use_template: temperature
13+
default: 0.6
14+
- name: top_p
15+
use_template: top_p
16+
default: 0.95
17+
- name: top_k
18+
label:
19+
zh_Hans: 取样数量
20+
en_US: Top k
21+
type: int
22+
min: 0
23+
max: 20
24+
default: 5
25+
help:
26+
zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
27+
en_US: Only sample from the top K options for each subsequent token.
28+
required: false
29+
- name: max_tokens
30+
use_template: max_tokens
31+
default: 8192
32+
min: 1
33+
max: 30000
34+

models/baichuan/models/llm/baichuan_turbo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def _model_mapping(self) -> dict:
3030
"baichuan4-air": "Baichuan4-Air",
3131
"baichuan-m2": "Baichuan-M2",
3232
"baichuan-m2-plus": "Baichuan-M2-Plus",
33+
"baichuan-m3": "Baichuan-M3",
3334
}
3435

3536
@property

0 commit comments

Comments
 (0)