Update model.py
Browse files
model.py
CHANGED
@@ -35,9 +35,9 @@ ALLOWED_VIDEO_EXTENSIONS = {'mp4', 'avi', 'mov', 'mkv'}
|
|
35 |
ALLOWED_AUDIO_EXTENSIONS = {'wav', 'mp3', 'm4a', 'flac'}
|
36 |
|
37 |
# Initialize Mistral 7B model and tokenizer
|
38 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
39 |
model = AutoModelForCausalLM.from_pretrained(
|
40 |
-
"
|
41 |
torch_dtype="auto",
|
42 |
device_map="auto",
|
43 |
trust_remote_code=True
|
|
|
35 |
ALLOWED_AUDIO_EXTENSIONS = {'wav', 'mp3', 'm4a', 'flac'}
|
36 |
|
37 |
# Initialize Mistral 7B model and tokenizer
|
38 |
+
tokenizer = AutoTokenizer.from_pretrained("bombaygamercc/learnyfi-mistral", trust_remote_code=True)
|
39 |
model = AutoModelForCausalLM.from_pretrained(
|
40 |
+
"bombaygamercc/learnyfi-mistral",
|
41 |
torch_dtype="auto",
|
42 |
device_map="auto",
|
43 |
trust_remote_code=True
|