Comments (5)
你也可以使用我huggingface下面的模型,对应的3epoch和你上面加载的模型是一样的,https://huggingface.co/Facico。后续我们将传到对应的organization中
from chinese-vicuna.
@ToSev7en 感谢你的issue。已经将对应的'adapter_config.json'和'adapter_model.bin'上传。
from chinese-vicuna.
@ToSev7en 感谢你的issue。已经将对应的'adapter_config.json'和'adapter_model.bin'上传。
好迅速!顺便问下如何转换为 'adapter_config.json'和'adapter_model.bin' ?
from chinese-vicuna.
@ToSev7en
把pytorch_model.bin名字改成adapter_model.bin就可以了,adapter_config.json如果用我们的配置的话仓库的config-sample里面有,如果要改成其他配置的话对应的地方改一下就可以了。
pytorch_model.bin是transformers的trainer生成的中间checkpoint,在generate的时候需要把他的名字改成adapter_model.bin才能被peft加载成lora模型,我们在generate的脚本中对本地的checkpoint文件有设置(会自动复制config并更改名字,这个在readme中有详细的说明),不过远程的lora配置还没进行处理(一般远程是直接上传adapter文件,不过昨天传的时候忘了)
from chinese-vicuna.
@ToSev7en 把pytorch_model.bin名字改成adapter_model.bin就可以了,adapter_config.json如果用我们的配置的话仓库的config-sample里面有,如果要改成其他配置的话对应的地方改一下就可以了。 pytorch_model.bin是transformers的trainer生成的中间checkpoint,在generate的时候需要把他的名字改成adapter_model.bin才能被peft加载成lora模型,我们在generate的脚本中对本地的checkpoint文件有设置(会自动复制config并更改名字,这个在readme中有详细的说明),不过远程的lora配置还没进行处理(一般远程是直接上传adapter文件,不过昨天传的时候忘了)
好的,学习了~
from chinese-vicuna.
Related Issues (20)
- 有办法改成分类任务么,用LlamaForSequenceClassification模型类加载
- transformers和pydantic问题 HOT 1
- 是因为梯度为0吗?
- 多卡finetune_chat时报mat1 and mat2 shapes cannot be multiplied (1024x2 and 1x11008) HOT 2
- 中文乱码 HOT 5
- 请问多个lora模型怎么合并?
- 请问llama7b_4bit_128g的input shape是多少呢 HOT 1
- 运行chat_7B.sh聊两句话out of memory
- 多卡训练 bash scripts/finetune.sh报错 HOT 1
- 这几个不同路径下的模型是否有区别?
- 运行generate脚本之后,在页面提问,很久没有产生回答,后台无报错 HOT 2
- OSError: Not enough disk space. Needed: Unknown size (download: Unknown size, generated: Unknown size, post-processed: Unknown size)
- 从belle+guanaco数据集中抽取前5000条样本训练lora,效果不好
- deepspeed跑模型相关问题
- 使用finetune.sh来指令微调llama-33b,出现ZeroDivisionError: integer division or modulo by zero错误 HOT 2
- 可以提供一下huggingface上的Chinese-Vicuna/llama7b_4bit_128g模型的config.json和tokenizer么?
- 官方colab安裝套件失效
- 如果更改數據集格式,要如何更改代碼
- 可以更新一下requirements吗? HOT 1
- 关于中断训练继续训练。 HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinese-vicuna.