cria icon indicating copy to clipboard operation
cria copied to clipboard

Link remotely hosted LLAMA

Open shantanuo opened this issue 1 year ago • 1 comments
trafficstars

If my llama3:8b is hosted on remote server somewhere in AWS cloud, how do I pass it in to this?

cria.Cria(
    model: Optional[str] = 'llama3:8b',
    standalone: Optional[bool] = False,
    run_subprocess: Optional[bool] = False,
    capture_output: Optional[bool] = False,
    allow_interruption: Optional[bool] = True,
    silence_output: Optional[bool] = False,
    close_on_exit: Optional[bool] = True,
) -> None

shantanuo avatar May 04 '24 07:05 shantanuo

Currently Cria isn't really meant for online models, so this is not supported.

If people are intrested though, it could be implemented.

The closest thing available now would be using an ollama instance on a server somewhere, and that is supported. To use a different host other than localhost, create an environment variable called OLLAMA_HOST and input your server's URL.

I should note that I haven't test this, but it should work. I will work on adding native support for this later, so that it can be possible to pass in the URL to a Cria instance instead of using environment variables.

Until then, I would need more information about your setup in order to help with your use case.

TLDR: Set an OLLAMA_HOST environment variable.

leftmove avatar May 04 '24 07:05 leftmove