OpenMOSS / OpenMOSS/MOSS

按照步骤安装完成运行moss_cli_demo.py报错

Open
#161 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12.3k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Fetching 17 files: 100%|████████████████████████████████████████████████████████████| 17/17 [00:00<00:00, 17033.72it/s]
Waiting for all devices to be ready, it may take a few minutes...
Traceback (most recent call last):
File "moss_cli_demo.py", line 31, in
model = load_checkpoint_and_dispatch(
File "D:\workspace\install\miniconda3\lib\site-packages\accelerate\big_modeling.py", line 479, in load_checkpoint_and_dispatch
load_checkpoint_in_model(
File "D:\workspace\install\miniconda3\lib\site-packages\accelerate\utils\modeling.py", line 872, in load_checkpoint_in_model
raise ValueError(
ValueError: At least one of the model submodule will be offloaded to disk, please pass along an offload_folder.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with moss_cli_demo.py around line 31 and inspect the load_checkpoint_and_dispatch call that raises the ValueError. Reproduce the documented installation on the reported Windows environment and determine the required checkpoint-loading configuration. Done means the demo proceeds past model loading without this error, with the necessary setup or limitation clearly identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.