logits-and-weights naming convention
Browse files
meta-llama_Llama-3.2-1B_4e20de362430cd3b72f300e6b0f18e50e7166e08.logits.safetensors → meta-llama_Llama-3.2-1B_4e20de362430cd3b72f300e6b0f18e50e7166e08.logits-and-weights.safetensors
RENAMED
|
File without changes
|
run_test.py
CHANGED
|
@@ -4,7 +4,7 @@ import os, sys
|
|
| 4 |
STORE_WEIGHTS = False
|
| 5 |
model_id, revision = sys.argv[1:]
|
| 6 |
user, model = model_id.split('/')
|
| 7 |
-
fn = f'{user}_{model}_{revision}.logits.safetensors'
|
| 8 |
|
| 9 |
import torch, numpy as np, random
|
| 10 |
torch.backends.cuda.matmul.allow_fp16_reduced_precision_reduction = False
|
|
|
|
| 4 |
STORE_WEIGHTS = False
|
| 5 |
model_id, revision = sys.argv[1:]
|
| 6 |
user, model = model_id.split('/')
|
| 7 |
+
fn = f'{user}_{model}_{revision}.{"logits-and-weights" if STORE_WEIGHTS else "logits"}.safetensors'
|
| 8 |
|
| 9 |
import torch, numpy as np, random
|
| 10 |
torch.backends.cuda.matmul.allow_fp16_reduced_precision_reduction = False
|