Spaces:
Paused
Paused
Didier Guillevic commited on
Commit ·
bb1436b
1
Parent(s): 638e937
Changing large language model
Browse files2 unmodified lines34567831 unmodified lines4041424344453 unmodified lines4950515253542 unmodified linesimport requestsimport pytzimport yamlfrom tools.final_answer import FinalAnswerTool# local import31 unmodified lines# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = smolagents.HfApiModel(max_tokens=2096,temperature=0.5,3 unmodified lines)model = smolagents.HfApiModel()# Import tool from Hubimage_generation_tool = smolagents.load_tool(2 unmodified lines345678931 unmodified lines4142434445464748493 unmodified lines535455565758596061626364652 unmodified linesimport requestsimport pytzimport yamlimport osfrom tools.final_answer import FinalAnswerTool# local import31 unmodified lines# If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model_id = 'Qwen/Qwen2.5-Coder-32B-Instruct'model_id = 'https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'model = smolagents.HfApiModel(max_tokens=2096,temperature=0.5,3 unmodified lines)model = smolagents.HfApiModel()mistral_api_key = os.environ["MISTRAL_API_KEY"]mistral_model_id = "mistral/codestral-latest"model = smolagents.LiteLLMModel(model_id=mistral_model_id,api_key=mistral_api_key,temperature=0.0)# Import tool from Hubimage_generation_tool = smolagents.load_tool(
app.py+11