Instructions to use SEBIS/code_trans_t5_small_code_documentation_generation_javascript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SEBIS/code_trans_t5_small_code_documentation_generation_javascript with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "summarization" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("summarization", model="SEBIS/code_trans_t5_small_code_documentation_generation_javascript")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("SEBIS/code_trans_t5_small_code_documentation_generation_javascript") model = AutoModel.from_pretrained("SEBIS/code_trans_t5_small_code_documentation_generation_javascript") - Notebooks
- Google Colab
- Kaggle
wei commited on
Commit ·
4b20be9
1
Parent(s): 8652f0c
Change pipeline type
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"pad_token_id": 0,
|
| 21 |
"relative_attention_num_buckets": 32,
|
| 22 |
"task_specific_params": {
|
| 23 |
-
"
|
| 24 |
"early_stopping": true,
|
| 25 |
"max_length": 512,
|
| 26 |
"num_beams": 4,
|
|
|
|
| 20 |
"pad_token_id": 0,
|
| 21 |
"relative_attention_num_buckets": 32,
|
| 22 |
"task_specific_params": {
|
| 23 |
+
"summarization": {
|
| 24 |
"early_stopping": true,
|
| 25 |
"max_length": 512,
|
| 26 |
"num_beams": 4,
|