XTuner 微调个人小助手认知 步骤 3. 权重转换的问题

Open
#2,530 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with docs/L1/XTuner/README.md and the Step 3 weight-conversion command shown in the issue. Reproduce the command with the actual iter_864.pth path, then inspect how the path argument is formed; done means the conversion accepts the real checkpoint path without the extra colon and produces the hf output directory.

Written by the indexing model from the issue text.

Description

https://github.com/InternLM/Tutorial/blob/camp4/docs/L1/XTuner/README.md
执行xtuner convert pth_to_hf ./internlm2_5_chat_7b_qlora_alpaca_e3_copy.py ${pth_file} ./hf

会提示FileNotFoundError: Cannot find /root/finetune/work_dirs/assistTuner/iter_864.pth: 路径多了有个冒号
但是实际我们路径下的名称是/root/finetune/work_dirs/assistTuner/iter_864.pth

Dominant language
Python
Stars
2k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InternLM/Tutorial

All issues in InternLM/Tutorial

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.