Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Bonito' object has no attribute 'llm_engine' #405

Open
yangboz opened this issue Dec 26, 2024 · 3 comments
Open

AttributeError: 'Bonito' object has no attribute 'llm_engine' #405

yangboz opened this issue Dec 26, 2024 · 3 comments

Comments

@yangboz
Copy link

yangboz commented Dec 26, 2024

after using python3.9 , torch2.5.1 to install bonito Version: 0.0.2.

running

# Generate synthetic instruction tuning dataset
sampling_params = SamplingParams(max_tokens=256, top_p=0.95, temperature=0.5, n=1)
synthetic_dataset = bonito.generate_tasks(
    unannotated_text,
    context_col=context_column,
    task_type=task_type,
    sampling_params=sampling_params
)

it throws

 ImportError: cannot import name 'SamplingParams' from 'bonito'

any idea? thanks.

@yangboz
Copy link
Author

yangboz commented Dec 26, 2024

sorry , found sampleingParams in vllm, but after that , still meets

AttributeError: 'Bonito' object has no attribute 'llm_engine'

more

RuntimeError: Failed to infer device type
Exception ignored in: <function LLM.__del__ at 0x7f7e0ddf59d0>
Traceback (most recent call last):
  File "/home/toyou/anaconda3/envs/py39/lib/python3.9/site-packages/vllm/entrypoints/llm.py", line 236, in __del__
    if self.llm_engine and hasattr(self.llm_engine, "shutdown"):

@yangboz yangboz changed the title ImportError: cannot import name 'SamplingParams' from 'bonito' AttributeError: 'Bonito' object has no attribute 'llm_engine' Dec 26, 2024
@davidnewman02
Copy link
Collaborator

davidnewman02 commented Dec 30, 2024

to install bonito Version: 0.0.2.

The latest bonito version is v0.8.1; please ensure you are installing ont-bonito this project is unaffiliated with BatsResearch group .

Please create a new venv and attempt the installation from scratch.

@yangboz
Copy link
Author

yangboz commented Dec 31, 2024

to install bonito Version: 0.0.2.

The latest bonito version is v0.8.1; please ensure you are installing ont-bonito this project is unaffiliated with BatsResearch group .

Please create a new venv and attempt the installation from scratch.

let me have a try at first. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants