Skip to content

Instantly share code, notes, and snippets.

View Sumanth077's full-sized avatar
🎯
Focusing

Sumanth Sumanth077

🎯
Focusing
View GitHub Profile
@Sumanth077
Sumanth077 / Claude_Instant.js
Created August 13, 2023 09:14
Access Claude Instant 1.2 model from Clarifai
////////////////////////////////////////////////////////////////////////////////////////////////////
// In this section, we set the user authentication, user and app ID, model details, and the URL
// of the text we want as an input. Change these strings to run your own example.
///////////////////////////////////////////////////////////////////////////////////////////////////
// Your PAT (Personal Access Token) can be found in the portal under Authentification
const PAT = '';
// Specify the correct user_id/app_id pairings
// Since you're making inferences outside your app's scope
const USER_ID = 'anthropic';
@Sumanth077
Sumanth077 / Claude_Instant.py
Created August 13, 2023 09:24
Access the Claude Instant 1.2 Model through Clarifai API
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as an input. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
##################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL
# of the image we want as an input. Change these strings to run your own example.
#################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
USER_ID = 'meta'
@Sumanth077
Sumanth077 / sdxl.py
Last active September 12, 2023 09:13
Stable Diffusion XL
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as an input. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
@Sumanth077
Sumanth077 / gpt_3.5_instruct_turbo.py
Last active September 25, 2023 09:21
GPT 3.5 Instruct Turbo
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as an input. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
USER_ID = 'openai'
@Sumanth077
Sumanth077 / wizardcoder15b.py
Created September 25, 2023 10:18
Wizard Coder
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as an input. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
USER_ID = 'wizardlm'
@Sumanth077
Sumanth077 / prompt_format.txt
Created September 25, 2023 10:28
Prompt Format: Wizard Coder
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{instruction}
### Response:
@Sumanth077
Sumanth077 / whisper.py
Created September 28, 2023 05:17
Whisper
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as a prompt. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = 'YOUR_PAT_HERE'
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
USER_ID = 'openai'
@Sumanth077
Sumanth077 / Mistral_7B_Instruct.py
Created September 29, 2023 02:33
Mistral 7 B Instruct
import os
os.environ["CLARIFAI_PAT"] = "your personal access token"
from clarifai.client.model import Model
# Model Predict
model_prediction = Model("https://clarifai.com/mistralai/completion/models/mistral-7B-Instruct").predict_by_bytes(b"Write a tweet on future of AI", "text")
@Sumanth077
Sumanth077 / Mistral_7B_Instruct_API.py
Created September 29, 2023 02:40
Mistral_7B_Instruct_API
######################################################################################################
# In this section, we set the user authentication, user and app ID, model details, and the URL of
# the text we want as an input. Change these strings to run your own example.
######################################################################################################
# Your PAT (Personal Access Token) can be found in the portal under Authentification
PAT = ''
# Specify the correct user_id/app_id pairings
# Since you're making inferences outside your app's scope
USER_ID = 'mistralai'