Spaces:
Running
on
Zero
Running
on
Zero
Lord-Raven
commited on
Commit
·
8217b91
1
Parent(s):
83433fb
Messing with configuration.
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ model_name = "MoritzLaurer/deberta-v3-base-zeroshot-v2.0"
|
|
33 |
file_name = "onnx/model.onnx"
|
34 |
tokenizer_name = "MoritzLaurer/deberta-v3-base-zeroshot-v2.0"
|
35 |
|
36 |
-
model = ORTModelForSequenceClassification.from_pretrained(model_name,
|
37 |
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, model_max_length=512)
|
38 |
|
39 |
# model = ORTModelForSequenceClassification.from_pretrained(
|
|
|
33 |
file_name = "onnx/model.onnx"
|
34 |
tokenizer_name = "MoritzLaurer/deberta-v3-base-zeroshot-v2.0"
|
35 |
|
36 |
+
model = ORTModelForSequenceClassification.from_pretrained(model_name, export=True, provider="CUDAExecutionProvider")
|
37 |
tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, model_max_length=512)
|
38 |
|
39 |
# model = ORTModelForSequenceClassification.from_pretrained(
|