Comments (2)
不支持
from baichuan-13b.
我在 AMD MI210 上跑起来了 Baichuan2,可以作为参考:
docker pull rocm/deepspeed:rocm5.7_ubuntu20.04_py3.9_pytorch_2.0.1_DeepSpeed
docker run -it --device /dev/kfd --device /dev/dri dfac3db401df /bin/bash
# 不要直接 pip install -r requirements.txt,那是 nvidia 版本的依赖
pip install numpy
pip install transformers
pip install sentencepiece
pip install tokenizers
pip install accelerate
# 安装 rocm 版 bitsandbytes
cd /home
git clone https://github.com/Lzy17/bitsandbytes-rocm
cd bitsandbytes-rocm
make hip
python setup.py install
cd /home
git clone https://github.com/baichuan-inc/Baichuan2.git
cd Baichuan2/fine-tune
# 显卡不支持 bf16 和 tf32
hostfile=""
deepspeed --hostfile=$hostfile fine-tune.py \
--report_to "none" \
--data_path "data/belle_chat_ramdon_10k.json" \
--model_name_or_path "baichuan-inc/Baichuan2-7B-Base" \
--output_dir "output" \
--model_max_length 512 \
--num_train_epochs 4 \
--per_device_train_batch_size 16 \
--gradient_accumulation_steps 1 \
--save_strategy epoch \
--learning_rate 2e-5 \
--lr_scheduler_type constant \
--adam_beta1 0.9 \
--adam_beta2 0.98 \
--adam_epsilon 1e-8 \
--max_grad_norm 1.0 \
--weight_decay 1e-4 \
--warmup_ratio 0.0 \
--logging_steps 1 \
--gradient_checkpointing True \
--deepspeed ds_config.json \
--fp16 True
from baichuan-13b.
Related Issues (20)
- fasttransformer inference
- 在 prompt中增加长度限制,无法生效
- Alibi编码为什么和标准的Alibi编码不一致?
- 调用api.py流式代码谁能分享一下啊 HOT 2
- 对baichuan13b还没有开始微调,仅仅是对话就自言自语?总是泄露Human: Assistant:对话数据 HOT 1
- baichuan-13b-chat sft微调loss不下降 HOT 1
- 如何离线部署? HOT 1
- ValueError: Tokenizer class BaichuanTokenizer does not exist or is not currently imported. HOT 2
- ValueError: The current `device_map` had weights offloaded to the disk. Please provide an `offload_folder` for them. Alternatively, make sure you have `safetensors` installed if the model you are using offers the weights in this format.
- 这个模型不支持多gpu模式吗
- 请问下,大家都是租用GPU服务器来运行大模型吗
- baichuan2 mmlu结果复现的问题
- baichuan-13b-chat批量生成示例
- 本地部署版本问题 HOT 2
- v100能部署Baichuan-13B-Base么?
- 各位大佬,微调baichuan2-13b后得到pth文件,该如何推理
- 各位大佬,请问采用官网给出的fine-tune文件做微调大概需要多少显存,使用A6000(48G)显示内存溢出。
- 将训练好的模型进行放入到web.demo中报错
- feat: function calling
- Baichuan13B vllm 效果很差 HOT 1
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 baichuan-13b.