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

TypeError: llmx.generators.text.hf_textgen.HFTextGenerator() got multiple values for keyword argument 'provider' #78

Closed
h9-tect opened this issue Dec 19, 2023 · 1 comment

Comments

@h9-tect
Copy link
Contributor

h9-tect commented Dec 19, 2023

I'm traying to test this code on Colab but I get error

from lida import llm
text_gen = llm(provider="hf", model="uukuguy/speechless-llama2-hermes-orca-platypus-13b", device_map="auto")
lida = Manager(llm=text_gen)
# now you can call lida methods as above e.g.
sumamry = lida.summarize("data/cars.csv")
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-33-d4854b320f88> in <cell line: 2>()
      1 from lida import llm
----> 2 text_gen = llm(provider="hf", model="uukuguy/speechless-llama2-hermes-orca-platypus-13b", device_map="auto")
      3 lida = Manager(llm=text_gen)
      4 # now you can call lida methods as above e.g.
      5 sumamry = lida.summarize("data/cars.csv")

/usr/local/lib/python3.10/dist-packages/llmx/generators/text/textgen.py in llm(provider, **kwargs)
     73         from .hf_textgen import HFTextGenerator
     74 
---> 75         return HFTextGenerator(provider=provider, models=models, **kwargs)
     76 
     77     else:

TypeError: llmx.generators.text.hf_textgen.HFTextGenerator() got multiple values for keyword argument 'provider'
@roy-sub
Copy link

roy-sub commented Jan 17, 2024

!pip3 install --upgrade llmx==0.0.17a0 

# Restart the colab session

from lida import Manager
from llmx import  llm
text_gen = llm(provider="hf", model="uukuguy/speechless-llama2-hermes-orca-platypus-13b", device_map="auto") 
lida = Manager(text_gen=text_gen)

@h9-tect h9-tect closed this as completed Jan 18, 2024
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