Translation
Transformers
PyTorch
Enawené-Nawé
Enawené-Nawé
t5
text2text-generation
Trained with AutoTrain
text-generation-inference
Instructions to use charanhu/text_to_sql_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use charanhu/text_to_sql_1 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="charanhu/text_to_sql_1")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("charanhu/text_to_sql_1") model = AutoModelForSeq2SeqLM.from_pretrained("charanhu/text_to_sql_1") - Notebooks
- Google Colab
- Kaggle
File size: 884 Bytes
fe53136 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | {
"_name_or_path": "AutoTrain",
"architectures": [
"T5ForConditionalGeneration"
],
"d_ff": 2816,
"d_kv": 64,
"d_model": 1024,
"decoder_start_token_id": 0,
"dense_act_fn": "gelu_new",
"diversity_penalty": null,
"dropout_rate": 0.1,
"eos_token_id": 1,
"feed_forward_proj": "gated-gelu",
"gradient_checkpointing": false,
"initializer_factor": 1.0,
"is_encoder_decoder": true,
"is_gated_act": true,
"layer_norm_epsilon": 1e-06,
"max_length": 128,
"model_type": "t5",
"num_beams": 4,
"num_decoder_layers": 24,
"num_heads": 16,
"num_layers": 24,
"output_past": true,
"pad_token_id": 0,
"padding": "max_length",
"relative_attention_max_distance": 128,
"relative_attention_num_buckets": 32,
"tie_word_embeddings": false,
"torch_dtype": "float32",
"transformers_version": "4.25.1",
"use_cache": true,
"vocab_size": 32102
}
|