Text-to-Image
Transformers
PyTorch
TensorBoard
TensorFlow
French
gpt2
text-generation
text-generation-inference
Instructions to use asi/igpt-fr-cased-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asi/igpt-fr-cased-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("asi/igpt-fr-cased-base") model = AutoModelForCausalLM.from_pretrained("asi/igpt-fr-cased-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from asi/igpt-fr-cased-base: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/asi/igpt-fr-cased-base/resolve/main/config.json
- Command line
-
hf download hf://asi/igpt-fr-cased-base/config.json
-
curl -L -o config.json https://huggingface.co/asi/igpt-fr-cased-base/resolve/main/config.json
748 Bytes
| { | |
| "_name_or_path": "/gpfswork/rech/tib/uvu12hl/french-gpt-2/models/dalle/checkpoint-64000", | |
| "activation_function": "gelu_new", | |
| "architectures": [ | |
| "GPT2LMHeadModel" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "bos_token_id": 0, | |
| "embd_pdrop": 0.1, | |
| "eos_token_id": 0, | |
| "gradient_checkpointing": false, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gpt2", | |
| "n_ctx": 512, | |
| "n_embd": 1792, | |
| "n_head": 14, | |
| "n_inner": null, | |
| "n_layer": 24, | |
| "n_positions": 512, | |
| "resid_pdrop": 0.1, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "transformers_version": "4.2.0", | |
| "use_cache": false, | |
| "vocab_size": 66385 | |
| } | |