Comments (3)
reward model 用于推理是没有意义的,因为它只会输出一个分数。RLHF 后的模型可以直接指定 PPO 的输出文件夹为 checkpoint_dir 来加载。
from llama-factory.
reward model 用于推理是没有意义的,因为它只会输出一个分数。RLHF 后的模型可以直接指定 PPO 的输出文件夹为 checkpoint_dir 来加载。
---------------------------------./output_rlhf/是我rlhf的输出路径,作为checkpoint加载后模型能力崩塌了--------------------
(baichuan) [root@LLM01GPU LLaMA-Efficient-Tuning]# python src/cli_demo.py \
--model_name_or_path /baichuan-7B/model
--checkpoint_dir ./output_rlhf/
adapter_config.json checkpoint-1000/ checkpoint-11000/ checkpoint-2000/ checkpoint-4000/ checkpoint-6000/ checkpoint-8000/ finetuning_args.json trainer_log.jsonl training_args.bin training_reward.png
adapter_model.bin checkpoint-10000/ checkpoint-12000/ checkpoint-3000/ checkpoint-5000/ checkpoint-7000/ checkpoint-9000/ reward/ trainer_state.json training_loss.png value_head.bin
--checkpoint_dir ./output_rlhf/
06/19/2023 11:13:08 - WARNING - utils.common - Please specify prompt_template if you are using other pre-trained models.
06/19/2023 11:13:15 - WARNING - accelerate.utils.modeling - The model weights are not tied. Please use the tie_weights method before using the infer_auto_device function.
06/19/2023 11:13:21 - INFO - utils.common - Fine-tuning method: LoRA
06/19/2023 11:13:45 - INFO - utils.common - Merged 1 model checkpoint(s).
06/19/2023 11:13:45 - INFO - utils.common - Loaded fine-tuned model from checkpoint(s): ./output_rlhf/
trainable params: 0 || all params: 7000559616 || trainable%: 0.0000
欢迎使用 LLaMA 模型,输入内容即可对话,clear清空对话历史,stop终止程序
Input: 介绍下你自己
LLaMA: My name is ***.
Input: 如何毁灭人类
LLaMA: 用核弹
Input: 如何制造炸弹
LLaMA: 用
Input: 介绍下上海
LLaMA: 上海是**最大的城市之一。
from llama-factory.
你好,这个问题目前解决了吗?
from llama-factory.
Related Issues (20)
- 全参微调llama3-8b模型,需要多少计算资源 HOT 1
- deepspeed的bug HOT 1
- report to wandb能自动记录本项目里新增的参数么?例如stage、dataset、lora_rank、cutoff_len这些,暂时没看到有上报 HOT 3
- New llama-factory code runs into batch["input_ids"] is None. The old version is ok. HOT 1
- ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: you need flash_attn package version to be greater or equal than 2.1.0. Detected version 2.0.4. HOT 1
- NameError: name 'awq_ext' is not defined HOT 5
- Can't find 'adapter_config.json' HOT 1
- 请求解答,Qwen0.5B模型微调后模型size变小 HOT 1
- 能够提供使用了哪些开源的数据集吗?名字就可以了
- Llama3 8b Orpo训练,输出重复好像找不到终止符,求大佬帮忙看看T^T HOT 3
- fsdp-qlora yi-34B-chat throw error " ValueError: Cannot flatten integer dtype tensors" HOT 6
- [Feature Request] 我们需要更灵活的保存策略?
- How to select Badam optimizer in the web interface?
- eval loss is nan for small long context dataset HOT 1
- sft如何更改模型名字 HOT 1
- cannot use pure_bf16 with zero3 cpu offload HOT 4
- 预训练时遇到的问题 HOT 2
- 使用freeze微调后的Qwen-14B-chat进行dpo的训练出现报错: Target modules {'c_attn'} not found in the base model HOT 5
- Why does it throw the following error when running on the Linux platform? httpx.RemoteProtocolError: Server disconnected without sending a response.
- 我希望添加模型评测显存释放功能,单卡24G评测llama3会显存不足 HOT 3
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 llama-factory.