Downloads · 30 days
0
miguelmejias0512/deepseek-solidity-coder-llm-7b-finetuned-old
deepseek-solidity-coder-llm-7b-finetuned-old is a text generation model from miguelmejias0512. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
The following hyperparameters were used during training: - learningrate: 5e-05 - trainbatchsize: 8 - evalbatchsize: 8 - seed: 42 - optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and…
Downloads · 30 days
0
Access
Public
Updated Jun 21, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json4.6 MB · 100%
From the Hugging Face model README
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
model_name = "miguelmejias0512/deepseek-solidity-coder-llm-7b-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
model.generation_config = GenerationConfig.from_pretrained(model_name)
model.generation_config.pad_token_id = model.generation_config.eos_token_id
text = "An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs.to(model.device), max_new_tokens=100)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
The following hyperparameters were used during training: