Last active
November 4, 2023 08:31
-
-
Save rfeers/34d5d1f177242d56314ca8b1e2595819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from langchain.llms import OpenAI, HuggingFaceHub | |
prompt = "Explain me briefly what's KDnuggets!" | |
gpt = OpenAI(model_name="text-ada-001") | |
mistral = HuggingFaceHub(repo_id="mistralai/Mistral-7B-v0.1", huggingfacehub_api_token=HF_API_KEY) | |
print("GPT LLM:", gpt(prompt), "\n\nHF-Mistral LLM:", mistral(prompt)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment