crewAI-examples icon indicating copy to clipboard operation
crewAI-examples copied to clipboard

example model file for ollama openhermes2.5-mistral

Open fxtoofaan opened this issue 2 years ago • 1 comments

would this be a correct modelfile to use for ollama openhermes2.5-mistral?

TEMPLATE """<|im_start|>system {{ .System }}<|im_end|> <|im_start|>user {{ .Prompt }}<|im_end|> <|im_start|>assistant """ PARAMETER num_ctx 4096 PARAMETER top_p 0.5 PARAMETER temperature 0 PARAMETER stop "<|im_start|>" PARAMETER stop "<|im_end|>" PARAMETER stop "Observation"

I am trying to run the trip_planner example locally using ollama and openhermes2.5-mistral model. In the example readme it says...

Configure Ollama: Set up Ollama to work with your local model. You will probably need to tweak the model using a Modelfile, I'd recommend adding Observation as a stop word and playing with top_p and temperature.

https://github.com/joaomdmoura/crewAI-examples/tree/main/trip_planner

The reason why I am asking is if I use default ollama model file for openhermes2.5-mistral I get these errors...

Retrying langchain.chat_models.openai.ChatOpenAI.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: Rate limit reached for gpt-4 in organization org-xxxxxxxxxxxxxxxxxx on tokens_usage_based per min: Limit 10000, Used 7356, Requested 2894. Please try again in 1.5s. Visit https://platform.openai.com/account/rate-limits to learn more..

fxtoofaan avatar Dec 29 '23 00:12 fxtoofaan

Maybe this is the same problem at #2

dukex avatar Jan 02 '24 22:01 dukex

https://github.com/joaomdmoura/crewAI-examples/issues/2

Biancamazzi avatar Jan 22 '24 21:01 Biancamazzi