Skip to content

Commit

Permalink
update book
Browse files Browse the repository at this point in the history
  • Loading branch information
wandbrandon committed Jan 20, 2025
1 parent 15bac95 commit 6a0330e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions burn-book/src/import/pytorch-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Introduction

Whether you've trained your model in PyTorch or you want to use a pre-trained model from PyTorch,
you can import them into Burn. Burn supports importing PyTorch model weights with `.pt` file
extension. Compared to ONNX models, `.pt` files only contain the weights of the model, so you will
you can import them into Burn. Burn supports importing PyTorch model weights with `.pt` and `.safetensors` file
extension. Compared to ONNX models, `.pt` and `.safetensors` files only contain the weights of the model, so you will
need to reconstruct the model architecture in Burn.

Here in this document we will show the full workflow of exporting a PyTorch model and importing it.
Expand Down

0 comments on commit 6a0330e

Please sign in to comment.