Spaces:
Runtime error
Runtime error
Update lib/graph_extract.py
Browse files- lib/graph_extract.py +2 -2
lib/graph_extract.py
CHANGED
|
@@ -34,7 +34,7 @@ print("Initializing application...")
|
|
| 34 |
model = AutoModelForCausalLM.from_pretrained(
|
| 35 |
"sciphi/triplex",
|
| 36 |
trust_remote_code=True,
|
| 37 |
-
attn_implementation="flash_attention_2" if flash_attn_installed else None,
|
| 38 |
torch_dtype=torch.bfloat16,
|
| 39 |
device_map="auto",
|
| 40 |
low_cpu_mem_usage=True,#advised if any device map given
|
|
@@ -43,7 +43,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 43 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 44 |
"sciphi/triplex",
|
| 45 |
trust_remote_code=True,
|
| 46 |
-
attn_implementation="flash_attention_2" if flash_attn_installed else None,
|
| 47 |
torch_dtype=torch.bfloat16,
|
| 48 |
)
|
| 49 |
|
|
|
|
| 34 |
model = AutoModelForCausalLM.from_pretrained(
|
| 35 |
"sciphi/triplex",
|
| 36 |
trust_remote_code=True,
|
| 37 |
+
# attn_implementation="flash_attention_2" if flash_attn_installed else None,
|
| 38 |
torch_dtype=torch.bfloat16,
|
| 39 |
device_map="auto",
|
| 40 |
low_cpu_mem_usage=True,#advised if any device map given
|
|
|
|
| 43 |
tokenizer = AutoTokenizer.from_pretrained(
|
| 44 |
"sciphi/triplex",
|
| 45 |
trust_remote_code=True,
|
| 46 |
+
# attn_implementation="flash_attention_2" if flash_attn_installed else None,
|
| 47 |
torch_dtype=torch.bfloat16,
|
| 48 |
)
|
| 49 |
|