Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ cd examples/inference/python
then you can check the performance by simply running following commands. `hf_bart_export.py` is used to transform pytorch weights to LightSeq protobuffer.

```shell
python export/hf_bart_export.py
python export/huggingface/hf_bart_export.py
python test/ls_bart.py
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Export Hugging Face BART models to protobuf/hdf5 format.
"""
import os
import sys
sys.path.append(
os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", ".."))
)
from collections import OrderedDict

import tensorflow as tf
Expand Down