Skip to content

Commit

Permalink
删除ERNIE-Bot-8K模型名 (#238)
Browse files Browse the repository at this point in the history
* 删除ERNIE-Bot-8K模型名

* 删除使用ERNIE-Bot-8K模型的代码

* 修改模型名字
  • Loading branch information
ide-rea authored Apr 12, 2024
1 parent e4f1597 commit e3b651d
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ ERNIE-Bot 4.0, ERNIE-Bot, ERNIE-3.5-4K-0205, ERNIE-3.5-8K-0205, ERNIE-3.5-8K-122
| 千帆模型名 | AppBuilder-SDK短名 |
|----------------------------|------------------|
| ERNIE-Bot 4.0 | eb-4 |
| ERNIE-Bot-8K | eb-8k |
| ERNIE-Bot | eb |
| ERNIE-Bot-turbo | eb-turbo |
| EB-turbo-AppBuilder专用版 | ernie_speed_appbuilder |
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/core/components/gbi/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ class ColumnItem(BaseModel):


SUPPORTED_MODEL_NAME = {
"ERNIE-Bot 4.0", "ERNIE-Bot-8K", "ERNIE-Bot", "ERNIE-Bot-turbo"
"ERNIE-Bot 4.0", "ERNIE-Bot", "ERNIE-Bot-turbo"
}
2 changes: 1 addition & 1 deletion appbuilder/core/components/gbi/nl2sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ print(f"llm result: {nl2sql_result_message.content.llm_result}")
## 参数说明

### 初始化参数
- model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot-8K, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
- model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
- table_schemas: 表的 schema,例如:

```
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/core/components/gbi/nl2sql/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, model_name: str, table_schemas: List[str], knowledge: Dict =
"""
创建 gbi nl2sql 对象
Args:
model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot-8K, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
table_schemas: 表的 schema 列表,例如: ```
CREATE TABLE `mytable` (
`d_year` COMMENT '年度,2019,2020..2022..',
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/core/components/gbi/select_table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ print(f"选的表是: {select_table_result_message.content}")

## 参数说明
### 初始化参数
- model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot-8K, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
- model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
- table_descriptions: 表的描述是个字典,key: 是表的名字, value: 是表的描述,例如:

```
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/core/components/gbi/select_table/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, model_name: str, table_descriptions: Dict[str, str],
"""
创建 GBI 选表对象
Args:
model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot-8K, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
model_name: 支持的模型名字 ERNIE-Bot 4.0, ERNIE-Bot, ERNIE-Bot-turbo, ERNIE Speed-AppBuilder
table_descriptions: 表的描述是个字典,key: 是表的名字, value: 是表的描述,例如:
{
"超市营收明细表": "超市营收明细表,包含超市各种信息等",
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/tests/test_gbi_nl2sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def setUp(self):
"""
设置环境变量及必要数据。
"""
model_name = "ERNIE-Bot-8K"
model_name = "ERNIE-Bot 4.0"
table_schemas = [SUPER_MARKET_SCHEMA]
self.nl2sql_node = appbuilder.NL2Sql(model_name=model_name,
table_schemas=table_schemas)
Expand Down
2 changes: 1 addition & 1 deletion appbuilder/tests/test_gbi_select_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def setUp(self):
"""
设置环境变量及必要数据。
"""
model_name = "ERNIE-Bot-8K"
model_name = "ERNIE-Bot 4.0"

self.select_table_node = \
appbuilder.SelectTable(model_name=model_name,
Expand Down
1 change: 0 additions & 1 deletion appbuilder/utils/model_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# 实际上,模型名称和简称之间存在多对一的关系,因此这里不能仅使用一个字典来存储名称映射信息
model_name_mapping = [
("ERNIE-Bot 4.0", "eb-4"),
("ERNIE-Bot-8K", "eb-8k"),
("ERNIE-Bot", "eb"),
("ERNIE-Bot-turbo", "eb-turbo"),
("EB-turbo-AppBuilder专用版", "eb-turbo-appbuilder"),
Expand Down
2 changes: 1 addition & 1 deletion docs/get_model_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ os.environ["APPBUILDER_TOKEN"] = "bce-YOURTOKEN"


### 返回示例
['ERNIE-Bot 4.0', 'ERNIE-Bot-8K', 'ERNIE-Bot', 'ERNIE-Bot-turbo']
['ERNIE-Bot 4.0', 'ERNIE-Bot', 'ERNIE-Bot-turbo']


## 高级用法
Expand Down

0 comments on commit e3b651d

Please sign in to comment.