noriyukipy commited on
Commit
f7257d9
1 Parent(s): a2ea247

Update README to add how to use revision

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -74,6 +74,15 @@ We recommend to specify `revision` to load the model for reproducibility.
74
  | 20210820.1.0 | Aug 20, 2021 |
75
  | 20210301.1.0 | March 1, 2021 |
76
 
 
 
 
 
 
 
 
 
 
77
  ## License
78
 
79
  All the models included in this repository are licensed under [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/).
 
74
  | 20210820.1.0 | Aug 20, 2021 |
75
  | 20210301.1.0 | March 1, 2021 |
76
 
77
+ You can specify `revision` as follows.
78
+
79
+ ```py
80
+ # Example of pipeline
81
+ >>> transformers.pipeline("text-generation", "colorfulscoop/gpt2-small-ja", revision="20210820.1.0")
82
+ # Example of AutoModel
83
+ >>> transformers.AutoModel.from_pretrained("colorfulscoop/gpt2-small-ja", revision="20210820.1.0")
84
+ ```
85
+
86
  ## License
87
 
88
  All the models included in this repository are licensed under [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/).