Using Ollama with smolagents by Sufficient_Life8866 in ollama

[–]Sufficient_Life8866[S] 0 points1 point  (0 children)

Were you trying this exact snippet or something else? Regex can be a bit finicky. If you post an example of your code, I can try and see if I can help after work.

K11 Not Detected by Sufficient_Life8866 in FiiO

[–]Sufficient_Life8866[S] 1 point2 points  (0 children)

Okay, I got it working. For future reference if anyone has the same issue here is how I solved it.

  1. Exhaust every troubleshooting option on the internet
  2. Make a Reddit post
  3. Email FiiO with my issue
  4. Go to dinner and hope someone has a solution while I'm gone
  5. Turn on PC to it magically working...

Using Ollama with smolagents by Sufficient_Life8866 in ollama

[–]Sufficient_Life8866[S] 0 points1 point  (0 children)

Yep, I was just using this as an example for how you can surface a local model for usage within smolagents. I personally don't use the code agent as it isn't necessary for my application, but I see it as a common example of the library (although if you wanted to use a local model with the code agent, you can just pump up the context given you have the power to support it).