C2MV commited on
Commit
27804a5
1 Parent(s): f62d0aa

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +2 -2
config.py CHANGED
@@ -3,7 +3,7 @@
3
  import torch
4
 
5
  # Device configuration
6
- DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
7
 
8
  # Path to the Yi-Coder model
9
  MODEL_PATH = "01-ai/Yi-Coder-9B-Chat" # Replace with your actual model path
@@ -12,4 +12,4 @@ MODEL_PATH = "01-ai/Yi-Coder-9B-Chat" # Replace with your actual model path
12
  MAX_LENGTH = 1024
13
 
14
  # Temperature for text generation
15
- TEMPERATURE = 0.7
 
3
  import torch
4
 
5
  # Device configuration
6
+ DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
7
 
8
  # Path to the Yi-Coder model
9
  MODEL_PATH = "01-ai/Yi-Coder-9B-Chat" # Replace with your actual model path
 
12
  MAX_LENGTH = 1024
13
 
14
  # Temperature for text generation
15
+ TEMPERATURE = 0.7