Text Generation
Transformers.js
ONNX
English
t5
text2text-generation
grammar-correction
coedit
quantized
text-generation-inference
Instructions to use rabden/coedit-large-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use rabden/coedit-large-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'rabden/coedit-large-onnx');
Upload generation_config.json with huggingface_hub
Browse files- generation_config.json +6 -64
generation_config.json
CHANGED
|
@@ -1,69 +1,11 @@
|
|
| 1 |
{
|
| 2 |
-
"max_length":
|
| 3 |
-
"
|
| 4 |
-
"min_length": 0,
|
| 5 |
-
"min_new_tokens": null,
|
| 6 |
-
"early_stopping": false,
|
| 7 |
-
"max_time": null,
|
| 8 |
-
"stop_strings": null,
|
| 9 |
-
"do_sample": false,
|
| 10 |
"num_beams": 1,
|
| 11 |
-
"
|
| 12 |
-
"cache_implementation": null,
|
| 13 |
-
"cache_config": null,
|
| 14 |
-
"return_legacy_cache": null,
|
| 15 |
-
"prefill_chunk_size": null,
|
| 16 |
"temperature": 0,
|
| 17 |
-
"
|
| 18 |
-
"top_p": 1.0,
|
| 19 |
-
"min_p": null,
|
| 20 |
-
"typical_p": 1.0,
|
| 21 |
-
"epsilon_cutoff": 0.0,
|
| 22 |
-
"eta_cutoff": 0.0,
|
| 23 |
-
"repetition_penalty": 1.2,
|
| 24 |
-
"encoder_repetition_penalty": 1.0,
|
| 25 |
-
"length_penalty": 1.0,
|
| 26 |
-
"no_repeat_ngram_size": 0,
|
| 27 |
-
"bad_words_ids": null,
|
| 28 |
-
"renormalize_logits": false,
|
| 29 |
-
"forced_bos_token_id": null,
|
| 30 |
-
"forced_eos_token_id": null,
|
| 31 |
-
"remove_invalid_values": false,
|
| 32 |
-
"exponential_decay_length_penalty": null,
|
| 33 |
-
"suppress_tokens": null,
|
| 34 |
-
"begin_suppress_tokens": null,
|
| 35 |
-
"sequence_bias": null,
|
| 36 |
-
"token_healing": false,
|
| 37 |
-
"guidance_scale": null,
|
| 38 |
-
"watermarking_config": null,
|
| 39 |
-
"num_return_sequences": 1,
|
| 40 |
-
"output_attentions": false,
|
| 41 |
-
"output_hidden_states": false,
|
| 42 |
-
"output_scores": false,
|
| 43 |
-
"output_logits": null,
|
| 44 |
-
"return_dict_in_generate": false,
|
| 45 |
-
"pad_token_id": 0,
|
| 46 |
-
"bos_token_id": null,
|
| 47 |
-
"eos_token_id": 1,
|
| 48 |
-
"encoder_no_repeat_ngram_size": 0,
|
| 49 |
"decoder_start_token_id": 0,
|
| 50 |
-
"
|
| 51 |
-
"
|
| 52 |
-
"num_assistant_tokens_schedule": "constant",
|
| 53 |
-
"assistant_confidence_threshold": 0.4,
|
| 54 |
-
"prompt_lookup_num_tokens": null,
|
| 55 |
-
"max_matching_ngram_size": null,
|
| 56 |
-
"assistant_early_exit": null,
|
| 57 |
-
"assistant_lookbehind": 10,
|
| 58 |
-
"target_lookbehind": 10,
|
| 59 |
-
"disable_compile": false,
|
| 60 |
-
"low_memory": null,
|
| 61 |
-
"penalty_alpha": null,
|
| 62 |
-
"dola_layers": null,
|
| 63 |
-
"diversity_penalty": 0.0,
|
| 64 |
-
"num_beam_groups": 1,
|
| 65 |
-
"constraints": null,
|
| 66 |
-
"force_words_ids": null,
|
| 67 |
-
"_from_model_config": true,
|
| 68 |
-
"transformers_version": "4.57.6"
|
| 69 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"max_length": 128,
|
| 3 |
+
"early_stopping": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"num_beams": 1,
|
| 5 |
+
"do_sample": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"temperature": 0,
|
| 7 |
+
"repetition_penalty": 1.5,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"decoder_start_token_id": 0,
|
| 9 |
+
"eos_token_id": 1,
|
| 10 |
+
"pad_token_id": 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|