File size: 482 Bytes
ed1d94c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import torch

# Model configurations
MODEL_NAME = "gpt2-medium"
SPEECH_MODEL = "facebook/wav2vec2-base-960h"
TTS_MODEL = "v3_en"

# Device configuration
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"

# Memory configurations
MEMORY_SIZE = 10 * 1024 * 1024 * 1024  # 10GB in bytes
LOCAL_MEMORY_SIZE = 3 * 1024 * 1024 * 1024  # 3GB in bytes

# API configurations
API_KEY = "your_huggingface_api_key_here"

# Conversation settings
MAX_CONTEXT_LENGTH = 3024