π¦¦
This file contains hidden or 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
# /// script | |
# requires-python = ">=3.11,<3.12" | |
# dependencies = [ | |
# "ai-gradio[together]" | |
# ] | |
# /// | |
import gradio as gr | |
import ai_gradio |
This file contains hidden or 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
# /// script | |
# requires-python = ">=3.11,<3.12" | |
# dependencies = [ | |
# "distilabel[hf-transformers, hf-inference-endpoints]", | |
# ] | |
# /// | |
from distilabel.models import InferenceEndpointsLLM | |
from distilabel.pipeline import InstructionResponsePipeline | |
repo_id = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B" |
This file contains hidden or 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
# /// script | |
# requires-python = ">=3.11,<3.12" | |
# dependencies = [ | |
# "distilabel[mlx]", | |
# ] | |
# /// | |
from distilabel.models import MlxLLM | |
from distilabel.pipeline import InstructionResponsePipeline | |
llm = MlxLLM( |
This file contains hidden or 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
# /// script | |
# requires-python = ">=3.11,<3.12" | |
# dependencies = [ | |
# "duckdb", sentence-transformers, huggingface_hub | |
# ] | |
# /// | |
from sentence_transformers import SentenceTransformer | |
import duckdb | |
from huggingface_hub import get_token |