"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "90250d9e48eaf99148cab81ac5b75c78db14abf0"
Commit eae8ee03 authored by Julien Chaumond's avatar Julien Chaumond
Browse files

[doc] model sharing: mention README.md + tweaks

cc @lysandrejik @thomwolf
parent 6bb6a017
...@@ -493,19 +493,22 @@ Your model will then be accessible through its identifier, a concatenation of yo ...@@ -493,19 +493,22 @@ Your model will then be accessible through its identifier, a concatenation of yo
"username/pretrained_model" "username/pretrained_model"
``` ```
**Please add a README.md model card** to the repo under `model_cards/` with: model description, training params (dataset, preprocessing, hyperparameters), evaluation results, intended uses & limitations, etc.
Your model now has a page on huggingface.co/models 🔥
Anyone can load it from code: Anyone can load it from code:
```python ```python
tokenizer = AutoTokenizer.from_pretrained("username/pretrained_model") tokenizer = AutoTokenizer.from_pretrained("username/pretrained_model")
model = AutoModel.from_pretrained("username/pretrained_model") model = AutoModel.from_pretrained("username/pretrained_model")
``` ```
Finally, list all your files on S3: List all your files on S3:
```shell ```shell
transformers-cli s3 ls transformers-cli s3 ls
# List all your S3 objects.
``` ```
You can also delete files: You can also delete unneeded files:
```shell ```shell
transformers-cli s3 rm transformers-cli s3 rm
......
...@@ -26,19 +26,22 @@ Your model will then be accessible through its identifier, a concatenation of yo ...@@ -26,19 +26,22 @@ Your model will then be accessible through its identifier, a concatenation of yo
"username/pretrained_model" "username/pretrained_model"
``` ```
**Please add a README.md model card** to the repo under `model_cards/` with: model description, training params (dataset, preprocessing, hyperparameters), evaluation results, intended uses & limitations, etc.
Your model now has a page on huggingface.co/models 🔥
Anyone can load it from code: Anyone can load it from code:
```python ```python
tokenizer = AutoTokenizer.from_pretrained("username/pretrained_model") tokenizer = AutoTokenizer.from_pretrained("username/pretrained_model")
model = AutoModel.from_pretrained("username/pretrained_model") model = AutoModel.from_pretrained("username/pretrained_model")
``` ```
Finally, list all your files on S3: List all your files on S3:
```shell ```shell
transformers-cli s3 ls transformers-cli s3 ls
# List all your S3 objects.
``` ```
You can also delete files: You can also delete unneeded files:
```shell ```shell
transformers-cli s3 rm transformers-cli s3 rm
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment