LaBSE
Project
This project is an implementation to convert Google's LaBSE model from TensorFlow to PyTorch. It also offers extensions to convert the smaller-LaBSE model from TensorFlow to PyTorch, and the LEALLA family of models.
The models are uploaded to the HuggingFace Model Hub in the PyTorch HF-compatible (original and safetensors), TensorFlow and Flax formats, alongwith a compatible tokenizer.
Export
To convert and export the models:
poetry install
poetry run convert_labse --output_path /path/to/models
To update the models on the HuggingFace Model Hub:
# Clone the already uploaded models.
cd /path/to/model
git clone https://huggingface.co/setu4993/LaBSE.git
# Export models anew and update.
cd /path/to/repo
poetry install
poetry run convert_labse --output_path /path/to/models/LaBSE --huggingface_path
Export Commands by Model
- LaBSE:
poetry run convert_labse --output_path /path/to/models/setu4993/LaBSE --huggingface_path - smaller-LaBSE:
poetry run convert_labse --output_path /path/to/models/setu4993/smaller-LaBSE --smaller --huggingface_path - LEALLA-base:
poetry run convert_lealla --size base --output_path /path/to/models/setu4993/LEALLA-base --huggingface_path - LEALLA-small:
poetry run convert_lealla --size small --output_path /path/to/models/setu4993/LEALLA-small --huggingface_path - LEALLA-large:
poetry run convert_lealla --size large --output_path /path/to/models/setu4993/LEALLA-large --huggingface_path
Model Cards
See the model-cards directory for a copy of the model cards.
License
This repository and the conversion code is licensed under the MIT license, but the model is distributed with an Apache-2.0 license.
Metadata
Release files for convert-labse-tf-pt 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| convert_labse_tf_pt-3.0.0.tar.gz | 3.4 MB | Without provenance | Details for convert_labse_tf_pt-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| convert_labse_tf_pt-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for convert_labse_tf_pt-3.0.0-py3-none-any.whl |
Total release size: 6.9 MB
Release files / convert_labse_tf_pt-3.0.0.tar.gz
| Download URL | convert_labse_tf_pt-3.0.0.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07d5818df35440b03806bf3a79a98a19b1f50e43a52d0d2e17f63dbdbffcc117
|
|
BLAKE2b-256 checksum How to use checksums |
979fdaed960aa54cfa25bcffe2052cd9d7b34d179e7d3c0edc8c488b989dcbbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure
|
Release files / convert_labse_tf_pt-3.0.0-py3-none-any.whl
| Download URL | convert_labse_tf_pt-3.0.0-py3-none-any.whl |
|---|---|
| Size | 3.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00368c3e5b29cdbc3ecb533680bdee9ae1a3987163c48e7bfad79a9e2c20433d
|
|
BLAKE2b-256 checksum How to use checksums |
60e5a747d2d6ed1948df6d81e1beccb957e0f38ad9baafbc12d011fe07ddbf54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure
|
Security for convert-labse-tf-pt 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.