haozaiiii

Results 4 issues of haozaiiii

为什么验证的时候重新定义了eval_loss,原来tatal_loss此时又代表什么呢? 代码位置如下: elif mode == tf.estimator.ModeKeys.EVAL: # 针对NER ,进行了修改 def metric_fn(label_ids, pred_ids): return { "eval_loss": tf.metrics.mean_squared_error(labels=label_ids, predictions=pred_ids), } eval_metrics = metric_fn(label_ids, pred_ids) output_spec = tf.estimator.EstimatorSpec( mode=mode, loss=total_loss, eval_metric_ops=eval_metrics )

### System Info / 系統信息 lora跑出来的文件,lora_path指定哪个,没有后缀checkpoint文件 ### Who can help? / 谁可以帮助到您? _No response_ ### Information / 问题信息 - [X] The official example scripts / 官方的示例脚本 - [ ] My...

### 请提出你的问题 并行训练时报错,求解答 Traceback (most recent call last): File "/home/pyh/ie2/PaddleNLP-release-2.5/model_zoo/uie/finetune.py", line 245, in main() File "/home/pyh/ie2/PaddleNLP-release-2.5/model_zoo/uie/finetune.py", line 184, in main train_result = trainer.train(resume_from_checkpoint=checkpoint) File "/root/anaconda3/envs/pybak/lib/python3.9/site-packages/paddlenlp/trainer/trainer.py", line 716, in train self._maybe_log_save_evaluate(tr_loss,...

question
triage

model.save_pretrained("waimai_10k_bert") ValueError: You are trying to save a non contiguous tensor: `bert.encoder.layer.0.attention.self.query.weight` which is not allowed. It either means you are trying to save tensors which are reference of each...