Spaces:
Runtime error
Runtime error
Ahmed Ahmed
commited on
Commit
·
4382634
1
Parent(s):
63076cf
low cpu mem mode
Browse files- model-tracing/main.py +1 -3
model-tracing/main.py
CHANGED
|
@@ -91,9 +91,7 @@ results["commit"] = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode
|
|
| 91 |
manual_seed(args.seed)
|
| 92 |
|
| 93 |
dtype = torch.bfloat16
|
| 94 |
-
low_cpu_mem_usage =
|
| 95 |
-
"70b" in args.base_model_id.lower()
|
| 96 |
-
) # Enable low memory loading if "70b" is in model name
|
| 97 |
|
| 98 |
print(f"Low CPU Mem Usage Flag set to {low_cpu_mem_usage}")
|
| 99 |
base_model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 91 |
manual_seed(args.seed)
|
| 92 |
|
| 93 |
dtype = torch.bfloat16
|
| 94 |
+
low_cpu_mem_usage = True
|
|
|
|
|
|
|
| 95 |
|
| 96 |
print(f"Low CPU Mem Usage Flag set to {low_cpu_mem_usage}")
|
| 97 |
base_model = AutoModelForCausalLM.from_pretrained(
|