microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.71k stars 290 forks source link

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

Closed h9-tect closed 8 months ago

h9-tect commented 9 months ago

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 commented 8 months ago
!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)