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
#!/usr/bin/env python3 | |
import click | |
import imageio | |
import imageio_ffmpeg | |
import io | |
import base64 | |
from PIL import Image | |
from openai import OpenAI |
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
import os | |
import asyncio | |
import signal | |
import time | |
from daily import * | |
class PrintTranscriptApp(EventHandler): |
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
# | |
# minimal daily-python command-line client using asyncio | |
# | |
import os | |
import asyncio | |
import signal | |
import time | |
from daily import * |
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
from datetime import datetime | |
import asyncio | |
import aiohttp | |
import os | |
import sys | |
from dailyai.conversation_wrappers import InterruptibleConversationWrapper | |
from dailyai.queue_frame import StartStreamQueueFrame, TranscriptionQueueFrame, TextQueueFrame, UserStartedSpeakingFrame, UserStoppedSpeakingFrame | |
from dailyai.services.daily_transport_service import DailyTransportService | |
from dailyai.services.fireworks_ai_services import FireworksLLMService |
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
import os | |
import json | |
import time | |
import statistics | |
from groq import Groq | |
# Set the Groq API key and the number of inferences to run | |
GROQ_API_KEY = os.environ.get("GROQ_API_KEY") | |
NUM_INFERENCES = 10 |
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
base_model: meta-llama/Meta-Llama-3-70B | |
deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json | |
load_in_8bit: false | |
load_in_4bit: true | |
strict: false | |
datasets: | |
# This will be the path used for the data when it is saved to the Volume in the cloud. | |
- path: data.jsonl |
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
base_model: meta-llama/Meta-Llama-3-70B | |
deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json | |
load_in_8bit: true | |
load_in_4bit: false | |
strict: false | |
datasets: | |
# This will be the path used for the data when it is saved to the Volume in the cloud. | |
- path: data.jsonl |
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
base_model: meta-llama/Meta-Llama-3-70B | |
# deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json | |
load_in_8bit: false | |
load_in_4bit: true | |
strict: false | |
datasets: | |
# This will be the path used for the data when it is saved to the Volume in the cloud. | |
- path: data.jsonl |
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
import asyncio | |
import aiohttp | |
import os | |
import sys | |
from pipecat.frames.frames import LLMMessagesFrame | |
from pipecat.pipeline.pipeline import Pipeline | |
from pipecat.pipeline.runner import PipelineRunner | |
from pipecat.pipeline.task import PipelineParams, PipelineTask | |
from pipecat.processors.aggregators.llm_response import ( |