lamini-ai / lamini

Apache License 2.0
2.5k stars 155 forks source link

ModuleNotFoundError: No module named 'llama' even after doing pip install lamini #70

Closed anonymous0905 closed 4 weeks ago

anonymous0905 commented 1 month ago

I have installed lamini using pip install lamini also used pip install --upgrade --force-reinstall --ignore-installed lamini --user but I keep getting ModuleNotFoundError: No module named 'llama'

can someone please help

edamamez commented 1 month ago

Hi there, what code are you trying to run? The error is correct -- there is no llama module but there is a Lamini module.

Here is an example from our docs: https://lamini-ai.github.io/inference/quick_start/

import lamini
# lamini.api_key = "<YOUR-LAMINI-API-KEY>"

llm = lamini.Lamini("meta-llama/Meta-Llama-3.1-8B-Instruct")
print(llm.generate("How are you?", output_type={"Response":"str"}))
anonymous0905 commented 4 weeks ago

Got it thanks, I was using deeplearning.ai notebook for reference.

edamamez commented 4 weeks ago

Got it, sorry that might be outdated -- we will take a look! Do you happen to have the specific notebook?

ninazwei90 commented 4 weeks ago

Got it thanks, I was using deeplearning.ai notebook for reference.

hi! Can you please share with us the notebook link?

anonymous0905 commented 4 weeks ago

This is the course link - https://learn.deeplearning.ai/courses/finetuning-large-language-models/lesson/4/instruction-finetuning

I have uploaded a few notebooks from the course that I used for reference - https://drive.google.com/drive/folders/1BpTaVI-obUqQRZ_TdkoNO6n2pq2c_Qw2?usp=drive_link