An open API service indexing awesome lists of open source software.

https://github.com/mithril-security/safetensorsconverter

Converts Pytorch to Safetensors
https://github.com/mithril-security/safetensorsconverter

Last synced: about 1 year ago
JSON representation

Converts Pytorch to Safetensors

Awesome Lists containing this project

README

          

# SafetensorsConverter

This script converts pytorch models to safetensors.

## Installation
Run the poetry package :
```bash
$ poetry shell
$ poetry install
```

## Usage
The pytorch files must be in the `.bin` extension.

```bash
(safetensorsconverter-py3.8) $ poetry run python convert_from_torch_to_safetensors.py
```