OpenBMB / OpenBMB/MiniCPM-o-Demo

AttributeError: 'PyTorchBackend' object has no attribute 'state'. Did you mean: 'status'?

Open Beginner friendly
#52 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
386
Forks
81
Avg merge
1h 59m
Merged PRs (30d)
3

Description

File "./worker.py", line 153, in health
if worker.state.total_requests > 0:
^^^^^^^^^^^^
AttributeError: 'PyTorchBackend' object has no attribute 'state'. Did you mean: 'status'?

无法运行是个什么问题?

我看core/processors/pytorch_backend.py这个文件确实没定义state

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 the health function at worker.py line 153 and inspect core/processors/pytorch_backend.py, where the issue reports that state is absent and status exists. Trace how the backend exposes health information, then verify that the worker starts and its health check no longer raises AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.