VERS-Models
Table des matières
Description
Installation
PyPi
VERS est disponible sur PyPi, vous pouvez l'installer avec pip à l'aide de la commande suivante:
pip install vers-models
Vous pouvez ensuite vérifier que l'installation s'est bien passée en lançant la commande vers --version
Développement
Pour installer VERS en mode développement, vous pouvez cloner le dépôt git et installer les dépendances avec pip:
git clone https://github.com/Marceau-H/VERS-Models.git
cd VERS-Models
pip install -e .
Usage
Ligne de commande
La cli se lance avec vers dans un terminal
Exemple d'usage:
vers --train --lang_name metrique_strophe --nb_predictions 100 --model_class multi_head_attn --num_epochs 50 --batch_size 650
Cette commande va entraîner (--train) un modèle de type multi_head_attn (--model_class) sur le dataset metrique_strophe (--lang_name) pendant 50 epochs (--num_epochs) avec une taille de batch de 650 (--batch_size) et va faire 100 prédictions à la fin de l'entraînement (--nb_predictions).
Options disponibles:
Cependant, il existe de nombreuses options disponibles pour la commande vers, vous pouvez les lister en lançant la commande suivante:
vers --help
Cela vous donnera une liste de toutes les options disponibles et de leur description.
Options spécifiques à un modèle:
Les modèles ont également des options qui leur sont propres, en effer, selon l'architecture choisie, différents hyperparamètres peuvent être modifiés. Par exemple, pour le modèle multi_head_attn, vous pouvez modifier le nombre de têtes d'attention avec l'option --num_heads. Les options disponibles pour chaque modèle sont listées dans le fichier de configuration correspondant dans le dossier config, certaines options à spécifier obligatoirement (notifiées par TO SPECIFY) et d'autres ont des valeurs par défaut.
Si vous voulez lister les options disponibles pour un modèle, vous pouvez le faire en lançant la commande suivante:
vers --model_help [model_class]
Cela vous donnera une liste de toutes les options disponibles pour le modèle (model_class à remplacer par le nom du modèle) et de leur type (défaut, obligatoire, etc.).
Exemple d'usage:
vers --model_help multi_head_attn
License
Ce projet est sous licence AGPL-3.0+ voir le fichier LICENSE pour plus de détails.
Metadata
Release files for vers-models 0.1.2
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 |
|---|---|---|---|---|
| vers_models-0.1.2.tar.gz | 36.3 kB | With provenance | Details for vers_models-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vers_models-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for vers_models-0.1.2-py3-none-any.whl |
Total release size: 77.4 kB
Release files / vers_models-0.1.2.tar.gz
| Download URL | vers_models-0.1.2.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cb78b85dac9e69bcb78498df1889a952c3d75e9f4de953fab7fdc10bd19a86d
|
|
BLAKE2b-256 checksum How to use checksums |
156a01744baf782c329ed4b4fa89d2596c1147666822cfe0869b1cf821bc243c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2025.
Transparency logRelease files / vers_models-0.1.2-py3-none-any.whl
| Download URL | vers_models-0.1.2-py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7db1d16d4ee518574a50a97b10e0d502fdaa804be7108779c530f6ff9f94b807
|
|
BLAKE2b-256 checksum How to use checksums |
60f0e550cb53833a58f9087d97b724f7abfb606a41a5621c21685dce2f974e40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2025.
Transparency logSecurity for vers-models 0.1.2
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for vers_models-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2025.
Transparency logA 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.