Translation
Transformers
Safetensors
English
Nigerian Pidgin
t5
text2text-generation
nigerian-pidgin
machine-translation
glossary-augmented
text-generation-inference
Instructions to use coderGit/eng-pidginedu-toucan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use coderGit/eng-pidginedu-toucan with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" 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("translation", model="coderGit/eng-pidginedu-toucan")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("coderGit/eng-pidginedu-toucan") model = AutoModelForSeq2SeqLM.from_pretrained("coderGit/eng-pidginedu-toucan", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from coderGit/eng-pidginedu-toucan: direct link, hf CLI and curl.
- Browser
- Download file 877 Bytes
-
https://huggingface.co/coderGit/eng-pidginedu-toucan/resolve/main/generation_config.json
- Command line
-
hf download hf://coderGit/eng-pidginedu-toucan/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/coderGit/eng-pidginedu-toucan/resolve/main/generation_config.json
877 Bytes
| { | |
| "assistant_confidence_threshold": 0.4, | |
| "assistant_lookbehind": 10, | |
| "decoder_start_token_id": 0, | |
| "diversity_penalty": 0.0, | |
| "do_sample": false, | |
| "early_stopping": false, | |
| "encoder_no_repeat_ngram_size": 0, | |
| "encoder_repetition_penalty": 1.0, | |
| "eos_token_id": [ | |
| 1 | |
| ], | |
| "epsilon_cutoff": 0.0, | |
| "eta_cutoff": 0.0, | |
| "length_penalty": 1.0, | |
| "max_length": 20, | |
| "min_length": 0, | |
| "no_repeat_ngram_size": 0, | |
| "num_assistant_tokens": 20, | |
| "num_assistant_tokens_schedule": "constant", | |
| "num_beam_groups": 1, | |
| "num_beams": 1, | |
| "num_return_sequences": 1, | |
| "output_scores": false, | |
| "pad_token_id": 0, | |
| "remove_invalid_values": false, | |
| "repetition_penalty": 1.0, | |
| "return_dict_in_generate": false, | |
| "target_lookbehind": 10, | |
| "temperature": 1.0, | |
| "top_k": 50, | |
| "top_p": 1.0, | |
| "transformers_version": "5.15.0", | |
| "typical_p": 1.0, | |
| "use_cache": true | |
| } | |