Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

AttributeError: 'LLM' object has no attribute 'engine_step' with Unsloth and vLLM

Đang mở
#411 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
ai, backend

Hướng nghiên cứu

Tái hiện lỗi trong môi trường được báo cáo với Python 3.10, Unsloth 2025.9.6 và vLLM 0.9.2, sau đó kiểm tra src/art/vllm/engine.py tại create_engine_pause_and_resume_functions và các hàm gọi nó trong src/art/unsloth/state.py. Được xem là hoàn tất khi engine vLLM khởi tạo trong quá trình đăng ký mô hình mà không gặp AttributeError đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Description
I am experiencing an AttributeError when attempting to run a script that uses Unsloth with vLLM. The traceback indicates that an LLM object from vLLM is being accessed for an attribute named engine_step, which does not exist in the current vLLM version.

This suggests a version incompatibility between Unsloth's code and the installed vLLM library.

Traceback Traceback (most recent call last): File "/home/ecs-user/ART_training/art_train.py", line 478, in <module> asyncio.run(model.register(backend)) File "/home/ecs-user/anaconda3/envs/ART/lib/python3.10/site-packages/nest_asyncio.py", line 30, in run return loop.run_until_complete(task) File "/home/ecs-user/anaconda3/envs/ART/lib/python3.10/site-packages/nest_asyncio.py", line 98, in run_until_complete return f.result() File "/home/ecs-user/anaconda3/envs/ART/lib/python3.10/asyncio/futures.py", line 201, in result raise self._exception.with_traceback(self._exception_tb) File "/home/ecs-user/anaconda3/envs/ART/lib/python3.10/asyncio/tasks.py", line 232, in __step result = coro.send(None) File "/home/ecs-user/ART/src/art/model.py", line 322, in register base_url, api_key = await backend._prepare_backend_for_training( File "/home/ecs-user/ART/src/art/local/backend.py", line 272, in _prepare_backend_for_training await service.start_openai_server(config=config) File "/home/ecs-user/ART/src/mp_actors/traceback.py", line 26, in async_wrapper raise e.with_traceback(streamlined_traceback()) File "/home/ecs-user/ART/src/art/unsloth/service.py", line 60, in start_openai_server self.state.trainer.save_model(lora_path) File "/home/ecs-user/anaconda3/envs/ART/lib/python3.10/functools.py", line 981, in __get__ val = self.func(instance) File "/home/ecs-user/ART/src/art/unsloth/service.py", line 45, in state return ModelState(self.config) File "/home/ecs-user/ART/src/art/unsloth/state.py", line 88, in __init__ self.vllm = vLLMState(self.model.vllm_engine, enable_sleep_mode) File "/home/ecs-user/ART/src/art/unsloth/state.py", line 140, in __init__ create_engine_pause_and_resume_functions(self.async_engine) File "/home/ecs-user/ART/src/art/vllm/engine.py", line 68, in create_engine_pause_and_resume_functions _engine_step = engine.engine_step AttributeError: 'LLM' object has no attribute 'engine_step' Steps to Reproduce Use Python 3.10 with an environment that has Unsloth and vLLM installed.

Expected Behavior
The script should initialize the vLLM engine and proceed with the training process without encountering any errors.

System Information
Operating System: [Ubuntu 22.04]

Python Version: 3.10

Unsloth Version: 2025.9.6

vLLM Version: 0.9.2

CUDA Version: 12.6

GPU: NVIDIA H20

Ngôn ngữ chính
Python
Star
10.8k
Fork
997
Merge trung bình
10 giờ 1 phút
Pull request đã merge (30 ngày)
117

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenPipe/ART

Tất cả issue của OpenPipe/ART

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.