Skip to content

Commit

Permalink
Update OpenELM-3B-Instruct "模型部署" and "Lora微调"
Browse files Browse the repository at this point in the history
  • Loading branch information
KMnO4-zx committed Aug 25, 2024
1 parent 2a3c232 commit 488baa2
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 37 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@
### 已支持模型

- [Apple OpenELM](https://machinelearning.apple.com/research/openelm)
- [ ] OpenELM-3B-Instruct FastApi 部署调用
- [ ] OpenELM-3B-Instruct langchain 接入
- [ ] OpenELM-3B-Instruct WebDemo 部署
- [ ] OpenELM-3B-Instruct Lora 微调
- [x] [OpenELM-3B-Instruct FastApi 部署调用](./models/OpenELM/01-OpenELM-3B-Instruct%20FastApi部署调用.md) @王泽宇
- [x] [OpenELM-3B-Instruct Lora 微调](./models/OpenELM/02-OpenELM-3B-Instruct%20Lora微调.md) @王泽宇

- [Llama3_1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)
- [x] [Llama3_1-8B-Instruct FastApi 部署调用](./models/Llama3_1/01-Llama3_1-8B-Instruct%20FastApi%20部署调用.md) @不要葱姜蒜
Expand Down Expand Up @@ -259,27 +257,29 @@
### 核心贡献者

- [宋志学(不要葱姜蒜)-项目负责人](https://github.com/KMnO4-zx) (Datawhale成员-中国矿业大学(北京))
- [邹雨衡-项目负责人](https://github.com/logan-zou) (Datawhale成员-对外经济贸易大学)
- [肖鸿儒](https://github.com/Hongru0306) (Datawhale成员-同济大学)
- [郭志航](https://github.com/acwwt)(内容创作者)
- [张帆](https://github.com/zhangfanTJU)(内容创作者-Datawhale成员)
- [Kailigithub](https://github.com/Kailigithub) (Datawhale成员)
- [李娇娇](https://github.com/Aphasia0515) (Datawhale成员)
- [丁悦](https://github.com/dingyue772) (Datawhale-鲸英助教)
- [邹雨衡-项目负责人](https://github.com/logan-zou) (Datawhale成员-对外经济贸易大学)
- [惠佳豪](https://github.com/L4HeyXiao) (Datawhale-宣传大使)
- [郑皓桦](https://github.com/BaiYu96) (内容创作者)
- [王茂霖](https://github.com/mlw67)(内容创作者-Datawhale成员)
- [孙健壮](https://github.com/Caleb-Sun-jz)(内容创作者-对外经济贸易大学)
- [东东](https://github.com/LucaChen)(内容创作者-谷歌开发者机器学习技术专家)
- [姜舒凡](https://github.com/Tsumugii24)(内容创作者-鲸英助教)
- [Kailigithub](https://github.com/Kailigithub) (Datawhale成员)
- [郑皓桦](https://github.com/BaiYu96) (内容创作者)
- [陈思州](https://github.com/jjyaoao) (Datawhale成员)
- [散步](https://github.com/sanbuphy) (Datawhale成员)
- [颜鑫](https://github.com/thomas-yanxin) (Datawhale成员)
- [王泽宇](https://github.com/moyitech)(内容创作者-鲸英助教)
- [李柯辰](https://github.com/Joe-2002) (Datawhale成员)
- [Swiftie](https://github.com/cswangxiaowei) (小米NLP算法工程师)
- [黄柏特](https://github.com/KashiwaByte)(内容创作者-西安电子科技大学)
- [张友东](https://github.com/AXYZdong)(内容创作者-Datawhale成员)
- [余洋](https://github.com/YangYu-NUAA)(内容创作者-Datawhale成员)
- [张晋](https://github.com/Jin-Zhang-Yaoguang)(内容创作者-Datawhale成员)
- [小罗](https://github.com/lyj11111111) (内容创作者-Datawhale成员)
- [谭逸珂](https://github.com/LikeGiver)(内容创作者-对外经济贸易大学)
- [王熠明](https://github.com/Bald0Wang)(内容创作者-Datawhale成员)
Expand All @@ -288,7 +288,6 @@
- [三水](https://github.com/sssanssss)(内容创作者-鲸英助教)
- [九月](https://github.com/chg0901)(内容创作者-Datawhale意向成员)
- [邓恺俊](https://github.com/Kedreamix)(内容创作者-Datawhale成员)
- [张晋](https://github.com/Jin-Zhang-Yaoguang) (内容创作者-Datawhale成员)

> 注:排名根据贡献程度排序
Expand Down
66 changes: 37 additions & 29 deletions contributors.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"不要葱姜蒜": {
"info": "[宋志学(不要葱姜蒜)-项目负责人](https://github.com/KMnO4-zx) (Datawhale成员-中国矿业大学(北京))",
"task_num": 38
},
"Logan Zou": {
"info": "[邹雨衡-项目负责人](https://github.com/logan-zou) (Datawhale成员-对外经济贸易大学)",
"task_num": 6
"task_num": 36
},
"肖鸿儒": {
"info": "[肖鸿儒](https://github.com/Hongru0306) (Datawhale成员-同济大学)",
"task_num": 12
"task_num": 11
},
"郭志航": {
"info": "[郭志航](https://github.com/acwwt)(内容创作者)",
"task_num": 11
},
"张帆": {
"info": "[张帆](https://github.com/zhangfanTJU)(内容创作者-Datawhale成员)",
"task_num": 9
},
"李娇娇": {
"info": "[李娇娇](https://github.com/Aphasia0515) (Datawhale成员)",
"task_num": 6
Expand All @@ -23,18 +23,14 @@
"info": "[丁悦](https://github.com/dingyue772) (Datawhale-鲸英助教)",
"task_num": 6
},
"Kailigithub": {
"info": "[Kailigithub](https://github.com/Kailigithub) (Datawhale成员)",
"task_num": 7
"Logan Zou": {
"info": "[邹雨衡-项目负责人](https://github.com/logan-zou) (Datawhale成员-对外经济贸易大学",
"task_num": 5
},
"惠佳豪": {
"info": "[惠佳豪](https://github.com/L4HeyXiao) (Datawhale-宣传大使)",
"task_num": 5
},
"郑皓桦": {
"info": "[郑皓桦](https://github.com/BaiYu96) (内容创作者)",
"task_num": 5
},
"王茂霖": {
"info": "[王茂霖](https://github.com/mlw67)(内容创作者-Datawhale成员)",
"task_num": 5
Expand All @@ -47,6 +43,18 @@
"info": "[东东](https://github.com/LucaChen)(内容创作者-谷歌开发者机器学习技术专家)",
"task_num": 5
},
"姜舒凡": {
"info": "[姜舒凡](https://github.com/Tsumugii24)(内容创作者-鲸英助教)",
"task_num": 5
},
"Kailigithub": {
"info": "[Kailigithub](https://github.com/Kailigithub) (Datawhale成员)",
"task_num": 4
},
"郑皓桦": {
"info": "[郑皓桦](https://github.com/BaiYu96) (内容创作者)",
"task_num": 4
},
"陈思州": {
"info": "[陈思州](https://github.com/jjyaoao) (Datawhale成员)",
"task_num": 3
Expand All @@ -59,6 +67,10 @@
"info": "[颜鑫](https://github.com/thomas-yanxin) (Datawhale成员)",
"task_num": 3
},
"王泽宇": {
"info": "[王泽宇](https://github.com/moyitech)(内容创作者-鲸英助教)",
"task_num": 3
},
"李柯辰": {
"info": "[李柯辰](https://github.com/Joe-2002) (Datawhale成员)",
"task_num": 2
Expand All @@ -71,14 +83,22 @@
"info": "[黄柏特](https://github.com/KashiwaByte)(内容创作者-西安电子科技大学)",
"task_num": 2
},
"小罗": {
"info": "[小罗](https://github.com/lyj11111111) (内容创作者-Datawhale成员)",
"task_num": 1
},
"张友东": {
"info": "[张友东](https://github.com/AXYZdong)(内容创作者-Datawhale成员)",
"task_num": 2
},
"余洋": {
"info": "[余洋](https://github.com/YangYu-NUAA)(内容创作者-Datawhale成员)",
"task_num": 2
},
"张晋": {
"info": "[张晋](https://github.com/Jin-Zhang-Yaoguang)(内容创作者-Datawhale成员)",
"task_num": 2
},
"小罗": {
"info": "[小罗](https://github.com/lyj11111111) (内容创作者-Datawhale成员)",
"task_num": 1
},
"谭逸珂": {
"info": "[谭逸珂](https://github.com/LikeGiver)(内容创作者-对外经济贸易大学)",
"task_num": 1
Expand All @@ -99,24 +119,12 @@
"info": "[三水](https://github.com/sssanssss)(内容创作者-鲸英助教)",
"task_num": 1
},
"姜舒凡": {
"info": "[姜舒凡](https://github.com/Tsumugii24)(内容创作者-鲸英助教)",
"task_num": 5
},
"九月": {
"info": "[九月](https://github.com/chg0901)(内容创作者-Datawhale意向成员)",
"task_num": 1
},
"邓恺俊": {
"info": "[邓恺俊](https://github.com/Kedreamix)(内容创作者-Datawhale成员)",
"task_num": 1
},
"余洋": {
"info": "[余洋](https://github.com/YangYu-NUAA)(内容创作者-Datawhale成员)",
"task_num": 2
},
"张帆": {
"info": "[张帆](https://github.com/zhangfanTJU)(内容创作者-Datawhale成员)",
"task_num": 9
}
}
35 changes: 35 additions & 0 deletions contributors_tool.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import json
import re
import pprint

with open('./README.md', 'r') as f:
readme = f.read()

with open('./contributors.json', 'r') as f:
contributors = json.load(f)

# task清零
keys = contributors.keys()
for key in keys:
contributors[key]['task_num'] = 0

tasks = readme.split('\n')
tasks = [task for task in tasks if '@' in task][:-1]

# 微调任务+2,普通任务+1
for task in tasks:
name = task.split('@')[1]
if name not in keys:
continue
if "Lora" in task:
contributors[name]['task_num'] += 2
else:
contributors[name]['task_num'] += 1
# 排序
contributors = dict(sorted(contributors.items(), key=lambda x: x[1]['task_num'], reverse=True))

with open('./contributors.json', 'w') as f:
json.dump(contributors, f, indent=4, ensure_ascii=False)

for key, value in contributors.items():
print(f'- {value["info"]}')

0 comments on commit 488baa2

Please sign in to comment.