Downloads · 30 days
19
32% of all-time downloads
eclfe/sqlen-1-21
sqlen-1-21 is a text generation model from eclfe. Use it when you need the model to write or continue text. It is set up for transformers.
This model was trained using H2O LLM Studio. - Base model: h2oai/h2o-danube2-1.8b-chat
Downloads · 30 days
19
32% of all-time downloads
All-time downloads
60
Public
Parameters
1.8B
3.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.7 GB · 100%
From the Hugging Face model README
This model was trained using H2O LLM Studio.
! pip install transformers==4.40.2
import huggingface_hub
huggingface_hub.login(<ACCESS_TOKEN>)
from transformers import pipeline
generate_text = pipeline( model="eclfe/sqlen-1-21", torch_dtype="auto", trust_remote_code=True, device_map={"": "cuda:0"}, token=True, )
messages = [ {"role": "user", "content": "#SQL statement you want in plain English here"} ]
res = generate_text( messages, renormalize_logits=True )
print(res[0]["generated_text"][-1]['content'])
MistralForCausalLM(
(model): MistralModel(
(embed_tokens): Embedding(32000, 2560, padding_idx=0)
(layers): ModuleList(
(0-23): 24 x MistralDecoderLayer(
(self_attn): MistralSdpaAttention(
(q_proj): Linear(in_features=2560, out_features=2560, bias=False)
(k_proj): Linear(in_features=2560, out_features=640, bias=False)
(v_proj): Linear(in_features=2560, out_features=640, bias=False)
(o_proj): Linear(in_features=2560, out_features=2560, bias=False)
(rotary_emb): MistralRotaryEmbedding()
)
(mlp): MistralMLP(
(gate_proj): Linear(in_features=2560, out_features=6912, bias=False)
(up_proj): Linear(in_features=2560, out_features=6912, bias=False)
(down_proj): Linear(in_features=6912, out_features=2560, bias=False)
(act_fn): SiLU()
)
(input_layernorm): MistralRMSNorm()
(post_attention_layernorm): MistralRMSNorm()
)
)
(norm): MistralRMSNorm()
)
(lm_head): Linear(in_features=2560, out_features=32000, bias=False)
)
This model was trained using H2O LLM Studio and with the configuration in cfg.yaml. Visit H2O LLM Studio to learn how to train your own large language models.
Please read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.
By using the large language model provided in this repository, you agree to accept and comply with the terms and conditions outlined in this disclaimer. If you do not agree with any part of this disclaimer, you should refrain from using the model and any content generated by it.