Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ def sample_tokens(logits, temperature=0.0, top_p=None, top_k=None, margin_confid
|
|
| 92 |
|
| 93 |
# --- Model Loading and Constants ---
|
| 94 |
# Load model configuration to get special token IDs
|
| 95 |
-
config = AutoConfig.from_pretrained("Dream-org/Dream-v0-Instruct-7B", trust_remote_code=True)
|
| 96 |
model_path = "Dream-org/Dream-Coder-v0-Instruct-7B"
|
| 97 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 98 |
print(f"Using device: {device}")
|
|
|
|
| 92 |
|
| 93 |
# --- Model Loading and Constants ---
|
| 94 |
# Load model configuration to get special token IDs
|
| 95 |
+
config = AutoConfig.from_pretrained("Dream-org/Dream-Coder-v0-Instruct-7B", trust_remote_code=True)
|
| 96 |
model_path = "Dream-org/Dream-Coder-v0-Instruct-7B"
|
| 97 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 98 |
print(f"Using device: {device}")
|