OpenBMB / OpenBMB/MiniCPM-o-Demo
AttributeError: 'PyTorchBackend' object has no attribute 'state'. Did you mean: 'status'?
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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