Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
romanbredehoft-zama
commited on
Commit
•
fee1bf4
1
Parent(s):
4d9e29f
Upgrade versions
Browse files- README.md +2 -1
- compile.py +1 -1
- requirements.txt +3 -1
README.md
CHANGED
@@ -22,13 +22,14 @@ In this directory, ie `sentiment-analysis-with-transformer`, you can do the foll
|
|
22 |
- First, create a virtual env and activate it:
|
23 |
|
24 |
```bash
|
25 |
-
python3
|
26 |
source .venv/bin/activate
|
27 |
```
|
28 |
|
29 |
- Then, install required packages:
|
30 |
|
31 |
```bash
|
|
|
32 |
pip3 install -U pip wheel setuptools --ignore-installed
|
33 |
pip3 install -r requirements.txt --ignore-installed
|
34 |
```
|
|
|
22 |
- First, create a virtual env and activate it:
|
23 |
|
24 |
```bash
|
25 |
+
python3 -m venv .venv
|
26 |
source .venv/bin/activate
|
27 |
```
|
28 |
|
29 |
- Then, install required packages:
|
30 |
|
31 |
```bash
|
32 |
+
pip3 install pip --upgrade
|
33 |
pip3 install -U pip wheel setuptools --ignore-installed
|
34 |
pip3 install -r requirements.txt --ignore-installed
|
35 |
```
|
compile.py
CHANGED
@@ -46,7 +46,7 @@ if Path.joinpath(script_dir, "sentiment_fhe_model/deployment").exists():
|
|
46 |
fhe_api = FHEModelDev(
|
47 |
model=model, path_dir=Path.joinpath(script_dir, "sentiment_fhe_model/deployment")
|
48 |
)
|
49 |
-
fhe_api.save()
|
50 |
|
51 |
# Write the serialized_processing.json file to the deployment folder
|
52 |
with open(
|
|
|
46 |
fhe_api = FHEModelDev(
|
47 |
model=model, path_dir=Path.joinpath(script_dir, "sentiment_fhe_model/deployment")
|
48 |
)
|
49 |
+
fhe_api.save(via_mlir=True)
|
50 |
|
51 |
# Write the serialized_processing.json file to the deployment folder
|
52 |
with open(
|
requirements.txt
CHANGED
@@ -1,3 +1,5 @@
|
|
1 |
concrete-ml==1.1.0
|
2 |
gradio==3.40.1
|
3 |
-
|
|
|
|
|
|
1 |
concrete-ml==1.1.0
|
2 |
gradio==3.40.1
|
3 |
+
pandas==1.4.3
|
4 |
+
transformers==4.32.0
|
5 |
+
jupyter==1.0.0
|