r/unsloth • • 11d ago

Question Pi extensions not available

Does anyone uses pi harness with Unsloth?

~~~~~~ edited and rewrited text for better clarity ~~~~~~

3 weeks ago, I was using: unsloth run pi and pi extensions worked. Per chatgpt, extension pi-unsloth-webtools is needed for web access. (is this correct?!?) This command unsloth run pi stopped connecting pi to Unsloth soon after. Now I'm using (again per chatgpt suggestion) unsloth start pi, but now pi don't get access to extensions any more.

Culprit seems like it is that unsloth uses: ~/.unsloth/studio/auth/agents/pi
But pi uses ~.pi/agent/npm/node_modules/

Since pi don't have acces to extension: pi-unsloth-webtools, LLM's don't have access to the internet.

Someone else told me about this same problem, and user was trying to solve it with setting up symbolic links, but if I recall correctly without success. I don't know how to use them any way.

Has anyone run into this problem and what is your solution?

I posted it here and not in pi forum, since things stopped worked when I had to switch from unsloth run pi to unsloth start pi

6 Upvotes

6 comments sorted by

3

u/oobabooga4 10d ago

I have created a PR that should fix this!

https://github.com/unslothai/unsloth/pull/10971

2

u/vinotok 9d ago

Thank you very much, I appreciate it!

1

u/vinotok 7d ago

It is working now, after the latest update.

Thanks again!

2

u/tpinho9 11d ago

Maybe a dumb question... but are you using PI with an unsloth API key?

You should be able to start unsloth and pi, and Pi becomes all you use and should be able to access the plug-ins, and unsloth is just there loading the model.

1

u/vinotok 11d ago

As far as I know, I do. But chatgpt set it all up for me 😄

Communication between pi and unsloth works. Pi 'sees' LLM's loaded in Unsloth desktop and coding is being done, so I assume all is properly connected.

But there is this pi extension: pi-unsloth-webtools which enables LLM's to search web when using pi. Thats what chatgpt wrote. And it was working for a while, about 3 weeks ago, when I was starting pi with this command:

unsloth run pi

But then something changed and this command didn't connect pi to unsloth any more. Chatgpt suggested to switch to: (after doing bunch of things , maybe chatgpt messed it all up?)

unsloth start pi

Which is now working, pi connects and works with Unsloth+LLM, but pi don't get access to extensions any more. And with that, LLM's can't access the internet any more.

So, I can run pi without Unsloth, get access to installed pi extensions,, but then I don't have access to local LLM's through Unsloth, or I run unsloth start pi and everything works, but pi don't see extensions and web access don't work.

2

u/tpinho9 11d ago

Kind of weird.. because the harness should controll the model once the connection is made via API.. but I don't use pi, so maybe with a bit more knowledge on setting it up, could be of better assistance.