Update config.py
Browse files
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
|