Skip to content

Instantly share code, notes, and snippets.

@zenixls2
Last active January 12, 2024 06:59
Show Gist options
  • Save zenixls2/22dc773b55db63434c3803cf89b4858f to your computer and use it in GitHub Desktop.
Save zenixls2/22dc773b55db63434c3803cf89b4858f to your computer and use it in GitHub Desktop.
tabby code ML in MacOS
filetype plugin indent on
call plug#begin()
Plug 'TabbyML/vim-tabby'
call plug#end()
[server]
# ~/.tabby-client/agent/config.toml
endpoint = "http://localhost:9030" # http or https URL
<?xml version="1.0" encoding="UTF-8"?>
<!---~/Library/LaunchAgents/homebrew.mxcl.tabby.plist-->
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.tabby</string>
<key>KeepAlive</key>
<true/>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/tabby</string>
<string>serve</string>
<string>--device</string>
<string>metal</string>
<string>--model</string>
<string>TabbyML/StarCoder-1B</string>
<string>--port</string>
<string>9030</string>
</array>
<key>WorkingDirectory</key>
<string>/Users/zenix.huang</string>
</dict>
</plist>
@zenixls2
Copy link
Author

zenixls2 commented Jan 12, 2024

brew install tabbyml/tabby/tabby
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.tabby.plist
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.tabby.plist

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