FireBrother
FireBrother
@ljelewis If you have all the data in an object (like formData), you may use dynamic watch to watch all 27 inputs in your case. You can add all inputs...
> > base 模型没有对话能力,加什么 template 回答也是混乱的 > > 微调过了。Baichuan-13B-Base + sft之后回答混乱 请问下你的training loss和eval loss能降到多少?我在用lora sft Baichuan-13B-Base的时候,loss完全没有下降。训练参数lora_rank=8, lora_alpha=32,lr=4e-4。
> 这个报错解决了,后面又报错: > > ```shell > Traceback (most recent call last): > File "src/train_sft.py", line 104, in > main() > File "src/train_sft.py", line 26, in main > model, tokenizer =...
更新:看起来似乎是没有提供hostfile?日志中有一行warning: ``` [WARNING] [runner.py:196:fetch_hostfile] Unable to find hostfile, will proceed with training with local resources only. ```
更新:好像解决了。改用standard launcher就可以正常通信了。 因为deepspeed默认似乎是用pdsh作为launcher的(但是我在accelerate和deepspeed的文档中都未找到这一说明,从表现上看似乎是这样的)。 这个模式是只需要在worker0上启动,然后它会把命令推送到hostfile中所有的子机器上。但是我的运算集群是在每个worker都运行同一个脚本,这也就是为什么出现了上述现象:每个机器都觉得自己是master。 只要通过`--deepspeed_multinode_launcher standard`用standard launcher,就可以了。(中间还有其他改动,例如添加了NCCL相关的环境变量,不确定是否与此相关。) 不过我又遇到新的问题。每个worker都在尝试写入trainer_log.jsonl,我使用nas将所有worker挂上了同一个输出目录,这导致文件写入冲突。这段代码是在src/peft_trainer.py中的,请问是不是应该设置成只允许world_process_zero写入这个日志? e.g. ```python ... def on_log(self, args: TrainingArguments, state: TrainerState, control: TrainerControl, **kwargs) -> None: ... if state.is_world_process_zero: os.makedirs(args.output_dir, exist_ok=True) with open(os.path.join(args.output_dir, "trainer_log.jsonl"),...
Thanks for your help @wchargin . I'm the administrator @soloice mentioned above. I tried the code and got `` in the first line. So I tried to figure out how...
@wchargin I tried your first and third solutions and both resolve the issue. Now the tensorflow version on out machine is 1.4.0rc0. Thanks again for your help! @soloice You may...
Thanks for fixing
While, I think headless server is what you need. https://github.com/NebulaModTeam/nebula/wiki/Setup-Headless-Server