modelscope / modelscope/ms-swift

qwen3.5 rl 训练报错

Open
#8,272 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Checklist / 检查清单
  • I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/filelock/_unix.py", line 49, in _acquire
fd = os.open(self.lock_file, open_flags, open_mode)
PermissionError: [Errno 1] Operation not permitted: '/njfs/train-security/xx/safe_datasets_rl/ms-swift-main/cache/datasets/cache_datasets_json_default-1abd18085476e206_0.0.0_f4e89e8750d5d5ffbef2c078bf0ddfedef29dc2faff52a6255cf513c05eb1092.lock'
但是 我目录下没产生这个文件;
During handling of the above exception, another exception occurred:

Image fd = os.open(self.lock_file, open_flags & ~os.O_CREAT, open_mode) PermissionError: [Errno 1] Operation not permitted: '/njfs/train-security/xx/safe_datasets_rl/ms-swift-main/cache/datasets/cache_datasets_json_default-1abd18085476e206_0.0.0_f4e89e8750d5d5ffbef2c078bf0ddfedef29dc2faff52a6255cf513c05eb1092.lock'
How to Reproduce / 如何复现

ubuntu22.04-cuda12.8.1-py311-torch2.10.0-vllm0.17.0-modelscope1.34.0-swift4.0.1 使用官方提供的镜像

Additional Information / 补充信息

No response

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 by reproducing the Qwen3.5 RL training failure in the listed Ubuntu 22.04 CUDA 12.8.1 Python 3.11 image. Inspect the filelock traceback and the referenced cache path, including why the .lock file cannot be created or opened. Done means the permission-related cause is identified and a verified resolution or clearer reproduction is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.