Skip to content

cocktailpeanut/xinference.pinokio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instant Xinference

Install, run, and automate https://github.com/xorbitsai/inference with one click.

In action

xinference.mp4

How the scirpt works

install.json

1. Create a virtualenv

{
  "method": "shell.run",
  "params": {
    "message": "python -m venv env"
  }
}

2. Pip install xinference

Run pip install to install xinference.

The template expression is for handling cross platform quirks (On windows it's env\Scripts\pip install xinference[all], and on other platforms it's env/bin/pip install xinference[all])

{
  "method": "shell.run",
  "params": {
    "message": "env{{path.sep}}{{os.platform() === 'win32' ? 'Scripts' : 'bin'}}{{path.sep}}pip install xinference[all]"
  }
}

3. Display notification to start the web ui

After the installation is complete, display a notification to send users to the start.json script, so they can launch the web ui.

{
  "method": "notify",
  "params": {
    "html": "<b>Success!</b> Successfully installed Xinference. Let's launch the web ui!",
    "href": "start.json"
  }
}

start.json

Starts the xinference server by running the command.

The template expression is for handling cross platform quirks (On windows it's env\Scripts\xinference, and on other platforms it's env/bin/xinference)

{
  "method": "shell.run",
  "params": {
    "message": "env{{path.sep}}{{os.platform() === 'win32' ? 'Scripts' : 'bin'}}{{path.sep}}xinference"
  }
}

Usage

  1. Run the install.json script to install
  2. Run the start.json script after installation (The install script will display a notification that sends you to start.json)

From that point on, whenever you start Pinokio, the start.json start script will automatically start and launch the Xinference web ui.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published