Decentralized compute layer
 
 
Go to file
Guillermo Rodriguez 139aea67b1
Add gpu worker tests to debug tractor lifecycle stuff also logging
Minor tweak to cuda docker image
Pin tractor branch
Add triton to cuda reqs
2022-12-11 08:32:25 -03:00
scripts First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
skynet_bot Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00
tests Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00
.dockerignore First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
.gitignore First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
Dockerfile.runtime First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
Dockerfile.runtime-cuda Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00
LICENSE First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
README.md First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
build_docker.sh First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
pytest.ini First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
requirements.cuda.0.txt Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00
requirements.cuda.1.txt First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
requirements.test.txt First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
requirements.txt Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00
setup.py First decupled architecture, still working on integrating tractor gpu workers 2022-12-10 18:18:03 -03:00
test.sh Add gpu worker tests to debug tractor lifecycle stuff also logging 2022-12-11 08:32:25 -03:00

README.md

create db in postgres:

CREATE USER skynet WITH PASSWORD 'password';
CREATE DATABASE skynet_art_bot;
GRANT ALL PRIVILEGES ON DATABASE skynet_art_bot TO skynet;

CREATE SCHEMA IF NOT EXISTS skynet;

CREATE TABLE IF NOT EXISTS skynet.user(
   id SERIAL PRIMARY KEY NOT NULL,
   tg_id INT,
   wp_id VARCHAR(128),
   mx_id VARCHAR(128),
   ig_id VARCHAR(128),
   generated INT NOT NULL,
   joined DATE NOT NULL,
   last_prompt TEXT,
   role VARCHAR(128) NOT NULL
);
ALTER TABLE skynet.user
    ADD CONSTRAINT tg_unique
    UNIQUE (tg_id);
ALTER TABLE skynet.user
    ADD CONSTRAINT wp_unique
    UNIQUE (wp_id);
ALTER TABLE skynet.user
    ADD CONSTRAINT mx_unique
    UNIQUE (mx_id);
ALTER TABLE skynet.user
    ADD CONSTRAINT ig_unique
    UNIQUE (ig_id);

CREATE TABLE IF NOT EXISTS skynet.user_config(
    id SERIAL NOT NULL,
    algo VARCHAR(128) NOT NULL,
    step INT NOT NULL,
    width INT NOT NULL,
    height INT NOT NULL,
    seed INT,
    guidance INT NOT NULL,
    upscaler VARCHAR(128)
);
ALTER TABLE skynet.user_config
    ADD FOREIGN KEY(id)
    REFERENCES skynet.user(id);