Downloads · 30 days
23
22% of all-time downloads
Mindigenous/MINDI-1.0-420M
MINDI-1.0-420M is a text generation model from Mindigenous. 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.
MINDI 1.0 420M is a 420M-parameter coding language model focused on Python first and JavaScript second. It is built for local, offline code generation workflows.
Downloads · 30 days
23
22% of all-time downloads
All-time downloads
104
Public
Parameters
424M
1.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
MINDI 1.0 420M is a 420M-parameter coding language model focused on Python first and JavaScript second. It is built for local, offline code generation workflows.
Recommended:
Minimum:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo_id = "YOUR_USERNAME/MINDI-1.0-420M"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
trust_remote_code=True,
torch_dtype=torch.float16,
).cuda()
prompt = "Write a Python function to check if a string is a palindrome."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=220,
temperature=0.2,
top_p=0.9,
do_sample=True,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Always run tests and static checks before using generated code in production.