Skip to content

Commit

Permalink
feat: add examples of onnx export (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZillaRU authored Jul 29, 2024
1 parent 680e046 commit 3ff474d
Show file tree
Hide file tree
Showing 4 changed files with 1,734 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/onnx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Export onnx or JIT models for deployment

## Run `pip install onnx -U`.

## Export GPT

3. Run `python examples/onnx/exporter.py --gpt`


## Export other models
Run `python examples/onnx/exporter.py --decoder --vocos`

## Reference
[Run LLMs on Sophon TPU](https://github.com/sophgo/LLM-TPU)
Loading

0 comments on commit 3ff474d

Please sign in to comment.