ZiruiWu commited on
Commit
1eb16b4
·
verified ·
1 Parent(s): b5b453f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}")