I am trying to run the quickstart tutorial with the and replace the default llm with huggingface llama3.2. Following is a snippet:
from crewai import Agent, Crew, Process, Task
from crewai.project import CrewBase, agent, crew, task
from crewai import LLM
hf_llama_model = LLM(model=‘huggingface/meta-llama/Llama-3.2-1B’)
@CrewBase
class AramcoTest():
“”“AramcoTest crew”“”
agents_config = 'config/agents.yaml'
tasks_config = 'config/tasks.yaml'
@agent
def researcher(self) -> Agent:
return Agent(
config=self.agents_config['researcher'],
verbose=True,
llm= hf_llama_model
)
.After running via crewai run, I get this error : “Exception: An error occurred while running the crew: litellm.AuthenticationError: HuggingfaceException - {“error”:“401 Unauthorized”}
An error occurred while running the crew: Command ‘[‘uv’, ‘run’, ‘run_crew’]’ returned non-zero exit status 1.”. any help will be appreciated. Thanks