Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n-FR] Translated "hf file system" to french (sub PR of 1900) #2331

Open
wants to merge 93 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
cbde7dc
Translated toctree & git_vs_htttp
Dec 9, 2023
7d596f8
Translated the cli guide
Dec 10, 2023
9ab5ba7
Testing to see if user is well configured
Dec 10, 2023
5646220
TEsting to see if branch is well configured
Dec 10, 2023
8d3cd26
Translated index
Dec 10, 2023
2687f87
Translated quick-start
Dec 10, 2023
7aff9fd
Corrected a minor error in the english doc
JibrilEl Dec 11, 2023
9fd8930
Reverting a wrong change
JibrilEl Dec 11, 2023
1ea5fc7
Translated installation.md
JibrilEl Dec 11, 2023
66c11a3
Translated community.md
JibrilEl Dec 11, 2023
d2b4c30
Translated download.md
JibrilEl Dec 11, 2023
87b5bbe
Translated hf_file_system.md
JibrilEl Dec 11, 2023
d18cbf9
Translated inference_client
JibrilEl Dec 11, 2023
3f3e831
Translated inference_endpoints.md
JibrilEl Dec 11, 2023
d492923
Fixed a few errors in the translation
JibrilEl Dec 12, 2023
1127be0
Translated integrations.md
JibrilEl Dec 13, 2023
c12624a
Translated mana-cache.md. Did not find a good translfation for cache-…
JibrilEl Dec 14, 2023
a56ee9b
Translated manage-space.md
JibrilEl Dec 15, 2023
158220b
Translated overview.md
JibrilEl Dec 16, 2023
9e2910a
Translated package-reference file
JibrilEl Dec 16, 2023
f7ec79f
Translated hf_api, login, mixins, repository, space_runtime and tenso…
JibrilEl Dec 18, 2023
c043949
Finished the translation of package reference by translating utilitie…
JibrilEl Dec 19, 2023
f2abc0e
Translated model-cards.md
JibrilEl Dec 20, 2023
2aff74f
Translated collections.md
JibrilEl Dec 27, 2023
9189ef8
translated community.md
JibrilEl Dec 28, 2023
df12926
Translated download.md, corrected an error in the english version and…
JibrilEl Dec 29, 2023
621b58c
translated hf_file_system
JibrilEl Dec 30, 2023
f7f7190
Translated inference_endpoints.md
JibrilEl Jan 1, 2024
4a250a5
Translated inference.md
JibrilEl Jan 2, 2024
ea0137b
translated repository.md
JibrilEl Jan 3, 2024
f521215
Translated search.md
JibrilEl Jan 3, 2024
8ab86fb
Translated webhooks_server.md
JibrilEl Jan 3, 2024
c420deb
corrected webhooks
JibrilEl Jan 4, 2024
ca05e4e
Translated upload.md
JibrilEl Jan 4, 2024
a166872
Added "fr" to .github/workflow
JibrilEl Jan 7, 2024
a6bff36
Deleted redirects as it is not needed
JibrilEl Jan 7, 2024
6946056
Corrected toctree.yml
JibrilEl Jan 7, 2024
c1af8c0
Corrected errors o quick-start.md
JibrilEl Jan 7, 2024
5569ed9
Corrected installation.md
JibrilEl Jan 8, 2024
913454f
Changed the translation of the product "space" in the whole documenta…
JibrilEl Jan 10, 2024
4187a37
Corrected git_vs_http
JibrilEl Feb 2, 2024
5617984
Corrected CLI.md
JibrilEl Feb 2, 2024
48c4612
Corrected collections.md
JibrilEl Feb 2, 2024
7efb701
Corrected community.md
JibrilEl Feb 3, 2024
de03384
Corrected download.md
JibrilEl Feb 3, 2024
353fa23
Corrected hf_file_system
JibrilEl Feb 3, 2024
1fad9bd
Correction of docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 9, 2024
5089a9a
Corrected git vs http and index.md
JibrilEl Feb 9, 2024
101e35c
Merge branch 'main' of https://github.com/JibrilEl/huggingface_hub
JibrilEl Feb 9, 2024
82c8a79
Finished correcting index.md
JibrilEl Feb 9, 2024
499cd8c
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
5655476
Update docs/source/fr/_toctree.yml
JibrilEl Feb 9, 2024
3e50bad
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
afbf7db
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
1625548
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
dd88260
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
1759188
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
28daada
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
06dc88f
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
8cf7df0
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
3cb34a5
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
925b655
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
07d3824
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
ad44254
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
e366b2c
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
6d37e1c
Update docs/source/fr/installation.md
JibrilEl Feb 9, 2024
e5b6ded
Finished correcting index.md
JibrilEl Feb 9, 2024
900dcce
Merge branch 'main' of https://github.com/JibrilEl/huggingface_hub
JibrilEl Feb 9, 2024
3c75477
Corrected inference endpoint, a lot of mistakes might have to look at…
JibrilEl Feb 13, 2024
5637113
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
a735616
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
8a578f2
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
8782aed
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
d38bf37
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
64e18b7
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
8423a9e
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
c618150
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
8666812
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
7cdefa2
Update docs/source/fr/_toctree.yml
JibrilEl Feb 16, 2024
2b19af2
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
8924212
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
2475344
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
8ce66cf
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
bdd7733
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
5ea15ea
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
fc85362
Update docs/source/fr/concepts/git_vs_http.md
JibrilEl Feb 16, 2024
5246973
Deleted files
JibrilEl Jun 7, 2024
34c49a7
Deleted files
JibrilEl Jun 7, 2024
63b0dd2
Revert "Deleted files"
JibrilEl Jun 7, 2024
64d4f60
Merge remote-tracking branch 'upstream/main'
JibrilEl Jun 12, 2024
2b89ea3
Deleted files
JibrilEl Jun 7, 2024
6a37d01
Delete files
JibrilEl Jun 12, 2024
536b8b2
Delete files
JibrilEl Jun 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Translated hf_api, login, mixins, repository, space_runtime and tenso…
…rboard in the package reference
  • Loading branch information
JibrilEl committed Dec 18, 2023
commit f7ec79f4de05fc2fcf06659309a2efa0086f38bd
33 changes: 18 additions & 15 deletions docs/source/fr/package_reference/hf_api.md
Original file line number Diff line number Diff line change
@@ -4,25 +4,26 @@ rendered properly in your Markdown viewer.

# HfApi Client

Below is the documentation for the `HfApi` class, which serves as a Python wrapper for the Hugging Face Hub's API.
Ci dessous la documentation pour la classe `HfApi`, qui sert de wrapper Python pour l'API Hugging Face Hub.

All methods from the `HfApi` are also accessible from the package's root directly. Both approaches are detailed below.
Toutes les méthodes de `HfApi` sont aussi accessibles depuis la racine du package directement. Les deux approches sont détaillées ci-dessous.

Using the root method is more straightforward but the [`HfApi`] class gives you more flexibility.
In particular, you can pass a token that will be reused in all HTTP calls. This is different
than `huggingface-cli login` or [`login`] as the token is not persisted on the machine.
It is also possible to provide a different endpoint or configure a custom user-agent.
Utiliser la méthode du chemin racine est plus direct mais la classe [`HfApi`] donne plus de flexibilité.
En particulier, vous pouvez mettre un token qui va être réutilisé dans tous les appels HTTP. C'est
différent de la commande `huggingface-cli login` ou [`login`] vu que le token n'est pas enregistré
sur la machine. Il est aussi possible de fournir un endpoint différent ou de configurer un user-agent
personnalisé.

```python
from huggingface_hub import HfApi, list_models

# Use root method
# Utilisez la méthode du chemin racine
models = list_models()

# Or configure a HfApi client
# Ou configurez le client HfApi
hf_api = HfApi(
endpoint="https://huggingface.co", # Can be a Private Hub endpoint.
token="hf_xxx", # Token is not persisted on the machine.
endpoint="https://huggingface.co", # Vous pouvez mettre un endpoint de Hub privéC.
token="hf_xxx", # Le token n'est pas sauvegardé sur la machine.
)
models = hf_api.list_models()
```
@@ -97,7 +98,7 @@ models = hf_api.list_models()

## CommitOperation

Below are the supported values for [`CommitOperation`]:
Ci dessous les valeurs supportés pour [`CommitOperation`]:

[[autodoc]] CommitOperationAdd

@@ -111,16 +112,18 @@ Below are the supported values for [`CommitOperation`]:

## Token helper

`huggingface_hub` stores the authentication information locally so that it may be re-used in subsequent
methods.
`huggingface_hub` garde en mémoire l'information d'authentification en local pour qu'il puisse être réutilisé
dans les méthodes suivantes.

It does this using the [`HfFolder`] utility, which saves data at the root of the user.
La librairie fait ceci en utilisant l'utilitaire [`HfFolder`], qui sauvegarde de la donnée
à la racine de l'utilisateur.

[[autodoc]] HfFolder

## Search helpers

Some helpers to filter repositories on the Hub are available in the `huggingface_hub` package.
Certains helpers pour filtrer les dépôts sur le Hub sont disponibles dans le package
`huggingface_hub`.

### DatasetFilter

2 changes: 1 addition & 1 deletion docs/source/fr/package_reference/inference_endpoints.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Inference Endpoints

Inferrence Endpoints est une solution permettant de déployer facilement les modèles en production sur une infrastructure gérée par Hugging Face et capable d'autoscaling . Un Inference Endpoint peut être crée sur un modèle depuis le [Hub](https://huggingface.co/models). Cette page est
Inference Endpoints est une solution permettant de déployer facilement les modèles en production sur une infrastructure gérée par Hugging Face et capable d'autoscaling . Un Inference Endpoint peut être crée sur un modèle depuis le [Hub](https://huggingface.co/models). Cette page est
une référence pour l'intégration d'`huggingface_hub` avec Inference Endpoints. Pour plus d'informations à propos du produit Inference Endpoints, consultez la [documentation officielle](https://huggingface.co/docs/inference-endpoints/index).

<Tip>
5 changes: 2 additions & 3 deletions docs/source/fr/package_reference/login.md
Original file line number Diff line number Diff line change
@@ -4,9 +4,8 @@ rendered properly in your Markdown viewer.

# Login and logout

The `huggingface_hub` library allows users to programmatically login and logout the
machine to the Hub.

La librairie `huggingface_hub` permet aux utilisateur de se connecter et déconnecter
votre machine au Hub par le code.
## login

[[autodoc]] login
8 changes: 4 additions & 4 deletions docs/source/fr/package_reference/mixins.md
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@
rendered properly in your Markdown viewer.
-->

# Mixins & serialization methods
# Mixins & méthodes de sérialisation

## Mixins

The `huggingface_hub` library offers a range of mixins that can be used as a parent class for your objects, in order to
provide simple uploading and downloading functions. Check out our [integration guide](../guides/integrations) to learn
how to integrate any ML framework with the Hub.
La librairie `huggingface_hub` offre une liste de mixins qui peuvent être utilisés en tant que classes parentes pour vos
objets, afin d'avoir des fonctions upload et de téléchargements simples. Consultez notre [guide d'intégration](../guides/integrations)
pour apprendre à intégrer n'importe quel framework ML avec le Hub.

### Generic

16 changes: 8 additions & 8 deletions docs/source/fr/package_reference/repository.md
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@ rendered properly in your Markdown viewer.

# Managing local and online repositories

The `Repository` class is a helper class that wraps `git` and `git-lfs` commands. It provides tooling adapted
for managing repositories which can be very large.
La classe `Repository` est un helper autour des commandes `git` et `git-lfs`. Elle offre des outils adaptés
à la gestion de dépôts qui peuvent être très volumineux.

It is the recommended tool as soon as any `git` operation is involved, or when collaboration will be a point
of focus with the repository itself.
C'est l'outil recommandé dès que des opérations avec `git` sont faites, ou lorsque la collaboration sera un point
clef du dépôt.

## The Repository class

@@ -33,15 +33,15 @@ of focus with the repository itself.

[[autodoc]] huggingface_hub.repository.commits_to_push

## Following asynchronous commands
## Commandes asynchrones

The `Repository` utility offers several methods which can be launched asynchronously:
L'utilitaire `Repository` offre plusieurs méthodes qui peuvent tourner en asynchrone:
- `git_push`
- `git_pull`
- `push_to_hub`
- The `commit` context manager
- Le manager de contexte `commit`

See below for utilities to manage such asynchronous methods.
Regardez ci-dessous les utilities pour gérer ce genre de méthodes asynchrones.

[[autodoc]] Repository
- commands_failed
17 changes: 9 additions & 8 deletions docs/source/fr/package_reference/space_runtime.md
Original file line number Diff line number Diff line change
@@ -2,17 +2,18 @@
rendered properly in your Markdown viewer.
-->

# Managing your Space runtime
# Gérez votre temps d'exécution de votre espace

Check the [`HfApi`] documentation page for the reference of methods to manage your Space on the Hub.
Consultez la page de documentation d'[`HfApi`] pour les références des méthodes pour gérer votre espace
sur le Hub.

- Duplicate a Space: [`duplicate_space`]
- Fetch current runtime: [`get_space_runtime`]
- Manage secrets: [`add_space_secret`] and [`delete_space_secret`]
- Manage hardware: [`request_space_hardware`]
- Manage state: [`pause_space`], [`restart_space`], [`set_space_sleep_time`]
- Dupliquer un espace: [`duplicate_space`]
- Afficher les temps de calcul actuels: [`get_space_runtime`]
- Gérer les secrets: [`add_space_secret`] et [`delete_space_secret`]
- Gérer le hardware: [`request_space_hardware`]
- Gérer l'état: [`pause_space`], [`restart_space`], [`set_space_sleep_time`]

## Data structures
## Structures de données

### SpaceRuntime

19 changes: 10 additions & 9 deletions docs/source/fr/package_reference/tensorboard.md
Original file line number Diff line number Diff line change
@@ -2,17 +2,18 @@
rendered properly in your Markdown viewer.
-->

# TensorBoard logger
# Logger TensorBoard

TensorBoard is a visualization toolkit for machine learning experimentation. TensorBoard allows tracking and visualizing
metrics such as loss and accuracy, visualizing the model graph, viewing histograms, displaying images and much more.
TensorBoard is well integrated with the Hugging Face Hub. The Hub automatically detects TensorBoard traces (such as
`tfevents`) when pushed to the Hub which starts an instance to visualize them. To get more information about TensorBoard
integration on the Hub, check out [this guide](https://huggingface.co/docs/hub/tensorboard).
TensorBoard est un kit d'outils pour l'expérimentation avec les outils de machine learning. TensorBoard permet de traquer
et de visualiser les métriques telles que la fonction de perte la précision, visualiser le graphe, visualisers des
histogrammes, afficher des images et bien plus. TensorBoard est bien intégré avec le Hub Hugging Face. Le Hub détecte
automatiquement les traces de Tensorboard (telles que `tfevents`) lors d'un push vers le Hub qui lance une instance
pour les visualiser. Pour avoir plus d'informations sur l'intégration de TensorBoard avec le Hub, consultez [ce guide](https://huggingface.co/docs/hub/tensorboard).

To benefit from this integration, `huggingface_hub` provides a custom logger to push logs to the Hub. It works as a
drop-in replacement for [SummaryWriter](https://tensorboardx.readthedocs.io/en/latest/tensorboard.html) with no extra
code needed. Traces are still saved locally and a background job push them to the Hub at regular interval.
Pour bénéficier de cette intégration, `huggingface_hub` fournit un logger personnalisé pour push les logs vers le Hub.
Il fonctionne comme un remplacement de [SummaryWriter](https://tensorboardx.readthedocs.io/en/latest/tensorboard.html)
avec aucun code supplémentaire nécessaire. Les traces sont toujours enregistrées en local et sont push vers le Hub
à des intervalles réguliers en arrière plan.

## HFSummaryWriter