Skip to content

Instantly share code, notes, and snippets.

@synthbot-anon
Last active December 21, 2023 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synthbot-anon/2446b36430a41fc867c01a294e82e0fd to your computer and use it in GitHub Desktop.
Save synthbot-anon/2446b36430a41fc867c01a294e82e0fd to your computer and use it in GitHub Desktop.

Step 1: Extract the zip file into any directory.

Step 2: Install the 'assistants itl'.

  • This is a wrapper for HuggingFace Agents. It lets you create & run agents by pushing configuration files, and it lets you add tools to agents via streams.
pip install --upgrade git+https://github.com/ThatOneAI/assistants_itl

Step 3: Initialize the infra.

./initialize.sh

Step 3: Run everything

export OPENAI_API_KEY="put your openai api key here"
PYTHONPATH=src python3 -m pydoc_itl

Step 4: Deploy the configs + test it out in a separate terminal

python3 -m itlmon
# Do the rest in itlmon:
/cluster assistants apply secrets/assistants-loop.yaml
/cluster assistants apply sample-configs/resources
/cluster assistants apply sample-configs/chatbots

# Switch to the "chat-stream" channel and ask:
What's in the 'transformers.tools' module?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment