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

[BUG] 'Agent' object has no attribute 'all_gpus' #639

Closed
doncat99 opened this issue Nov 20, 2024 · 3 comments
Closed

[BUG] 'Agent' object has no attribute 'all_gpus' #639

doncat99 opened this issue Nov 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@doncat99
Copy link

doncat99 commented Nov 20, 2024

Describe the bug
A clear and concise description of what the bug is.

In swarms.structs.agent.py:
Agent Class, class member "all_gpus" is not declare in init,

which leads to member function un() error. due to this following line of code
all_gpus = all_gpus or self.all_gpus

To Reproduce
Steps to reproduce the behavior:

in example.py:

user has to add following extra line of code to make program work:
agent.all_gpus = False

result = agent.run(
"How can I establish a ROTH IRA to buy stocks and get a tax break? What are the criteria. Create a report on this question.",
all_cores=True,
)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@doncat99 doncat99 added the bug Something isn't working label Nov 20, 2024
Copy link

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.

@doncat99 doncat99 changed the title [BUG] [BUG] 'Agent' object has no attribute 'all_gpus' Nov 20, 2024
@kyegomez
Copy link
Owner

@doncat99 hey it should be fixed now, please update your swarms package: pip3 install -U swarms clusterops

@kyegomez
Copy link
Owner

@doncat99 and also try pip3 install -U swarms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants