Spaces:
Runtime error
Runtime error
Commit
·
45ae45d
1
Parent(s):
04aede3
Upload app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import gradio as gr
|
|
11 |
from dataclasses import dataclass, field
|
12 |
from transformers import HfArgumentParser
|
13 |
from typing import Optional
|
14 |
-
|
15 |
from lmflow.datasets.dataset import Dataset
|
16 |
from lmflow.pipeline.auto_pipeline import AutoPipeline
|
17 |
from lmflow.models.auto_model import AutoModel
|
@@ -118,6 +118,7 @@ def main():
|
|
118 |
model_args,
|
119 |
tune_strategy='none',
|
120 |
ds_config=ds_config,
|
|
|
121 |
device="cpu",#pipeline_args.device,
|
122 |
)
|
123 |
|
|
|
11 |
from dataclasses import dataclass, field
|
12 |
from transformers import HfArgumentParser
|
13 |
from typing import Optional
|
14 |
+
import torch
|
15 |
from lmflow.datasets.dataset import Dataset
|
16 |
from lmflow.pipeline.auto_pipeline import AutoPipeline
|
17 |
from lmflow.models.auto_model import AutoModel
|
|
|
118 |
model_args,
|
119 |
tune_strategy='none',
|
120 |
ds_config=ds_config,
|
121 |
+
dtype=torch.float16,
|
122 |
device="cpu",#pipeline_args.device,
|
123 |
)
|
124 |
|