The following code generates an OpenAI compatible endpoint URL…
- User
The following code generates an OpenAI compatible endpoint URL https://calling-granted-unity-alaska.trycloudflare.com, but it is not clear to me why.
import os, shutil, torch from IPython.display import clear_output, display, HTML from IPython.utils import capture from google.colab import files, drive !wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4 %env LD_PRELOAD=/content/libtcmalloc_minimal.so.4
#PARAMS #@markdown 👈 Configure the settings below, then press this button to start the installation process. The links will appear at the bottom of this page after a few minutes.
Model = "Utopia 13B" #@param ["(No Model)", "Airoboros M 7B 3.1.2", "Airoboros Mistral2.2 7B", "Amethyst 13B Mistral", "ANIMA Phi Neptune Mistral 7B", "Arithmo Mistral 7B", "Asclepius 13B", "AshhLimaRP Mistral 7B", "Athena v4 13B", "Augmental 13B", "Basilisk 7B v0.2", "BerrySauce L2 13B", "CodeLlama 13B", "CodeLlama 13B Instruct", "CodeLlama 13B Python", "CollectiveCognition v1.1 Mistral 7B", "Dans AdventurousWinds Mk2 7B", "Dolphin 2.2.1 Mistral 7B", "Emerhyst 13B", "Em German Mistral v01 7B", "Hermes Trismegistus Mistral 7B", "HornyEchidna 13B v0.1", "Huginn 13B v4.5", "Japanese StableLM Instruct Gamma 7B", "Kimiko Mistral 7B", "Leo Mistral Hessianai 7B Chat", "Llama 2 13B", "Llama 2 7B", "Llama 2 13B Chat", "Llama 2 7B Chat", "LLaMA2 13B Tiefighter", "Llava v1.5 13B", "Magpie 13B", "MegaMix T1 13B", "Mistral 7B Claude Chat", "Mistral 7B Dolphin2.1 Lima0.5", "Mistral 7B Instruct v0.1", "Mistral 7B OpenOrca", "Mistral 7B v0.1", "Mistral ClaudeLimaRP v3 7B", "Mistral Pygmalion 7B", "Mistral Trismegistus 7B", "Mistralic 7B-1", "MistralLite 7B", "MistRP Airoboros 7B", "Mythalion 13B", "MythoMax L2 Kimiko v2 13B", "MythoMax L2 13B", "Naberius 7B", "Nous Capybara 7B V1.9", "Nous Hermes Llama2 13B", "Nous Hermes Llama2 7B", "OpenBuddy Mistral 7B v13 Base", "OpenChat 3.5 7B", "OpenHermes 2.5 Mistral 7B", "PsyMedRP v1 13B", "Pygmalion 2 13B", "Pygmalion 2 13B SuperCOT", "Pygmalion 2 7B", "ReMM SLERP L2 13B", "Samantha 1.2 Mistral 7B", "Samantha Mistral Instruct 7B", "SauerkrautLM 7B v1 Mistral", "Sheep Duck Llama2 13B", "SlimOpenOrca Mistral 7B", "Speechless Code Mistral 7B v1.0", "Speechless Llama2 Hermes Orca Platypus WizardLM 13B", "Spicyboros 13B 2.2", "Spicyboros 7B 2.2", "Spring Dragon 13B", "Storytime 13B", "SynthIA 7B v2.0", "Thespis Mistral 7B v0.5", "UndiMix v4 13B", "Unholy v1 12L 13B", "Utopia 13B", "Vigostral 7B Chat", "WizardCoder Python 13B v1.0", "WizardLM 1.0 L2 13B", "WizardMath 13B v1.0", "Xwin LM 13B V0.2", "Xwin LM 7B V0.2", "Xwin MLewd 13B v0.2", "Yarn Mistral 7B 128K", "Yarn Mistral 7B 64K", "Zarablend L2 7B", "Zephyr 7B Beta"] #@markdown > Models from Hugging Face. (This list will be updated as newer models are released.) Flags = "--share --extensions openai --public-api --chat-buttons" #@param [] {allow-input: true} #@markdown > You can enter any or here. Google_Drive = False #@param {type:"boolean"} #@markdown > Remember that models are very large, and free Google Drive only provides 15GB. Debug = False #@param {type:"boolean"} #@markdown > Shows the installation console log if checked. model_url = "" branch = ""
- Assistant
- User
And how do I use the generated URL in Python to mimic OpenAI? Please be very specific.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.