Skip to content

[Bug] hf3fs_utils.cpp not exist #8646

@anaivebird

Description

@anaivebird

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
  • 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
  • 5. Please use English, otherwise it will be closed.

Describe the bug

Traceback (most recent call last):
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/launch_server.py", line 6, in <module>
    from sglang.srt.entrypoints.http_server import launch_server
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/entrypoints/http_server.py", line 50, in <module>
    from sglang.srt.entrypoints.engine import _launch_subprocesses
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/entrypoints/engine.py", line 41, in <module>
    from sglang.srt.managers.data_parallel_controller import (
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/managers/data_parallel_controller.py", line 34, in <module>
    from sglang.srt.managers.scheduler import run_scheduler_process
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/managers/scheduler.py", line 130, in <module>
    from sglang.srt.mem_cache.hiradix_cache import HiRadixCache
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/mem_cache/hiradix_cache.py", line 9, in <module>
    from sglang.srt.managers.cache_controller import HiCacheController
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/managers/cache_controller.py", line 33, in <module>
    from sglang.srt.mem_cache.storage.hf3fs.storage_hf3fs import HiCacheHF3FS
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/mem_cache/storage/hf3fs/storage_hf3fs.py", line 15, in <module>
    from sglang.srt.mem_cache.storage.hf3fs.client_hf3fs import Hf3fsClient
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/mem_cache/storage/hf3fs/client_hf3fs.py", line 13, in <module>
    hf3fs_utils = load(name="hf3fs_utils", sources=[f"{root}/hf3fs_utils.cpp"])
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1623, in load
    return _jit_compile(
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2034, in _jit_compile
    version = JIT_EXTENSION_VERSIONER.bump_version_if_changed(
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/torch/utils/_cpp_extension_versioner.py", line 47, in bump_version_if_changed
    hash_value = hash_source_files(hash_value, source_files)
  File "/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/torch/utils/_cpp_extension_versioner.py", line 16, in hash_source_files
    with open(filename, 'rb') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/work/FileSystem/miniconda/envs/sglang_latest/lib/python3.10/site-packages/sglang/srt/mem_cache/storage/hf3fs/hf3fs_utils.cpp'

Reproduction

uv pip install "sglang[all]>=0.4.10"
python -m sglang.launch_server --model-path Qwen3-Coder-30B-A3B-Instruct

Environment

conda create --name sglang python=3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions