Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
from custom_model import CustomModel
|
5 |
|
6 |
# Load the model and tokenizer
|
7 |
-
model_name = "deepseek-ai/DeepSeek-V3"
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
9 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
10 |
model = CustomModel.from_pretrained(model_name, config=config, trust_remote_code=True)
|
|
|
4 |
from custom_model import CustomModel
|
5 |
|
6 |
# Load the model and tokenizer
|
7 |
+
model_name = "deepseek-ai/DeepSeek-V3@main" # Pin a specific revision, e.g., "main"
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
9 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
10 |
model = CustomModel.from_pretrained(model_name, config=config, trust_remote_code=True)
|