Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline environment tabby freezes without any output #3539

Open
magiccaptain opened this issue Dec 10, 2024 · 3 comments
Open

Offline environment tabby freezes without any output #3539

magiccaptain opened this issue Dec 10, 2024 · 3 comments

Comments

@magiccaptain
Copy link

Describe the bug
I would like to use Tabby in an offline environment. However, when I disconnect from the internet and run the command TABBY_ROOT=/tabby_home ./tabby serve --model StarCoder-1B --chat-model Qwen2-1.5B-Instruct, the program freezes without any output. But once I reconnect to the internet, the program starts up normally. Is it necessary for the Tabby program to access the network every time it is launched? And is there any way to prevent this from happening? I have already downloaded the Tabby models files in the tabby_home directory.

Information about your version
tabby 0.21.1

Information about your GPU
CPU

@zwpaper
Copy link
Member

zwpaper commented Dec 10, 2024

Hi @magiccaptain, Tabby can operate in an offline environment. However, by default, when you specify a model name in the command arguments, Tabby will attempt to fetch the model from the Tabby Registry online.

Here are two options to consider:

  1. Follow the instructions at https://tabby.tabbyml.com/docs/references/models-http-api/llama.cpp/ to use an HTTP model, preventing Tabby from downloading one.

  2. Copy the existing ~/.tabby/models/TabbyML/models.json and the three specified model directories ~/.tabby/models/TabbyML/${MODEL_NAME} to the offline environment.

After completing one of these steps, you can run Tabby offline.

@topcheer
Copy link

try to blacklist github.com and raw.githubusercontent.com in your /etc/hosts by adding following line before you run tabby
0.0.0.0 github.com raw.githubusercontent.com

@zwpaper
Copy link
Member

zwpaper commented Dec 19, 2024

Hi @topcheer, I've conducted the test you mentioned, and it works on my end:

Google Chrome 2024-12-20 00 20 29

I also performed a test on Linux with the ethernet disabled, and it worked as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants