jgwill / jghfmanager

HuggingFace EndPoint Manager - Ex. Boot a ChatMusician Endpoint, send some requests then suspend it.
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

jghfmanager

HuggingFace EndPoint Manager - Ex. Boot a ChatMusician Endpoint, send some requests then suspend it.

Prototype

1. Inferencer booting and executing the HuggingFace Endpoint described in the 'orpheus-config.yml'

Install and run

pip install -U jghfmanager orpheuspypractice

#run 
cd mycreation_folder

ohfi

Config

orpheus-config.yml

huggingface:
  name: chatmusician-myendpointname
  namespace: myusername
  repository: m-a-p/ChatMusician
  token_env_var: HUGGINGFACE_API_KEY

Musical Inference request

musical.yml

Python use for LangSmith Hub Prompt jgwill/cmpenghelperbeta

install
pip install -U langchainhub

from langchain import hub
tool_hub_tag="jgwill/cmpenghelperbeta"
prompt_template = hub.pull(tool_hub_tag)