IamRulo commited on
Commit
8c30f51
·
verified ·
1 Parent(s): 0e31843

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -2
agent.py CHANGED
@@ -690,8 +690,9 @@ def build_graph(provider: str = "huggingface"):
690
  """
691
  llm = ChatHuggingFace(
692
  llm=HuggingFaceEndpoint(
693
- repo_id="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
694
- task="text-generation", # for chat‐style use “text-generation”
 
695
  #max_new_tokens=1024,
696
  #do_sample=False,
697
  #repetition_penalty=1.03,
 
690
  """
691
  llm = ChatHuggingFace(
692
  llm=HuggingFaceEndpoint(
693
+ #repo_id="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
694
+ endpoint_url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
695
+ #task="text-generation", # for chat‐style use “text-generation”
696
  #max_new_tokens=1024,
697
  #do_sample=False,
698
  #repetition_penalty=1.03,