Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,11 +24,11 @@ ckpt_load = 'model.pt'
|
|
| 24 |
|
| 25 |
start = "000000000000\n"
|
| 26 |
num_samples = 1
|
| 27 |
-
max_new_tokens =
|
| 28 |
|
| 29 |
seed = random.randint(1, 100000)
|
| 30 |
torch.manual_seed(seed)
|
| 31 |
-
device = '
|
| 32 |
dtype = 'bfloat16' if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else 'float16'
|
| 33 |
compile = False
|
| 34 |
exec(open('configurator.py').read())
|
|
|
|
| 24 |
|
| 25 |
start = "000000000000\n"
|
| 26 |
num_samples = 1
|
| 27 |
+
max_new_tokens = 768
|
| 28 |
|
| 29 |
seed = random.randint(1, 100000)
|
| 30 |
torch.manual_seed(seed)
|
| 31 |
+
device = 'cpu' if torch.cuda.is_available() else 'cpu'
|
| 32 |
dtype = 'bfloat16' if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else 'float16'
|
| 33 |
compile = False
|
| 34 |
exec(open('configurator.py').read())
|