modelscope / modelscope/ms-swift

设置MODELSCOPE_CACHE后会报Stale file handle

Open
#6,695 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15.7k
Forks
1.7k
Avg merge
1d 16h
Merged PRs (30d)
136

Description

[rank1]: File "/usr/local/lib/python3.10/dist-packages/datasets/arrow_dataset.py", line 4101, in _select_with_indices_mapping
[rank1]: os.chmod(indices_cache_file_name, 0o666 & ~umask)
[rank1]: OSError: [Errno 116] Stale file handle: xxx

每个node都会报相同错误

Contributor guide

Open the contributing guide

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 the reported datasets/arrow_dataset.py _select_with_indices_mapping call, especially the os.chmod operation, and reproduce the failure after setting MODELSCOPE_CACHE in a multi-node run. Done means the same setup completes without Stale file handle errors on any node.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.