Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError(f"Some keys are not used by the HfArgumentParser: {sorted(unused_keys)}") #5633

Closed
1 task done
TracyGuo2001 opened this issue Oct 8, 2024 · 1 comment
Closed
1 task done
Labels
solved This problem has been already solved

Comments

@TracyGuo2001
Copy link

Reminder

  • I have read the README and searched the existing issues.

System Info

  • llamafactory version: 0.9.1.dev0
  • Platform: Linux-5.4.0-100-generic-x86_64-with-glibc2.31
  • Python version: 3.10.15
  • PyTorch version: 2.4.1+cu121 (GPU)
  • Transformers version: 4.45.0
  • Datasets version: 2.21.0
  • Accelerate version: 0.34.2
  • PEFT version: 0.12.0
  • TRL version: 0.9.6
  • GPU type: NVIDIA A40
    满足requirements的要求

Reproduction

运行LLaMA-Factory/examples/train_lora/llama3_lora_predict.yaml遇到错误

Expected behavior

File "/miniconda3/envs/llama_factory/lib/python3.10/site-packages/transformers/hf_argparser.py", line 377, in parse_dict
raise ValueError(f"Some keys are not used by the HfArgumentParser: {sorted(unused_keys)}")
ValueError: Some keys are not used by the HfArgumentParser: ['ddp_timeout', 'do_predict', 'output_dir', 'overwrite_output_dir', 'per_device_eval_batch_size', 'predict_with_generate']

环境满足requirements的要求,是最新下载的代码,不知道是什么问题呢

Others

No response

@github-actions github-actions bot added the pending This problem is yet to be addressed label Oct 8, 2024
@hiyouga
Copy link
Owner

hiyouga commented Oct 8, 2024

llamafactory-cli train

@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Oct 8, 2024
@hiyouga hiyouga closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants