Downloads · 30 days
21
9% of all-time downloads
wasmdashai/Wasm-Coder-8B-Instruct-V1
Wasm-Coder-8B-Instruct-V1 is a text generation model from wasmdashai. Use it when you need the model to write or continue text. It is set up for transformers.
Wasm-Coder-8B-Instruct-V1 is an 8-billion parameter instruction-tuned language model developed by wasmdashai, , code generation, and technical reasoning. It is designed to help developers working on edge computing, br…
Downloads · 30 days
21
9% of all-time downloads
All-time downloads
240
Public
Parameters
8.3B
33 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors33 GB · 100%
From the Hugging Face model README
Wasm-Coder-8B-Instruct-V1 is an 8-billion parameter instruction-tuned language model developed by wasmdashai, , code generation, and technical reasoning. It is designed to help developers working on edge computing, browser-based runtimes, and low-level systems programming.
Wasm-Coder-8B-Instruct-V1 is part of the Wasm-Coder family—models specifically tailored for tasks involving WebAssembly, Rust, C/C++, and embedded systems programming. The model has been instruction-tuned on a diverse dataset combining code, documentation, compiler logs, and structured code reasoning tasks.
Architecture: Decoder-only transformer
Parameters: 8B
Training: Pretrained + Instruction fine-tuning
Supported Context Length: 32,768 tokens
Specialization: WebAssembly, Rust, C/C++, Systems Programming
Components:
Install dependencies:
pip install --upgrade transformers
Example code to load and run the model:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "wasmdashai/Wasm-Coder-8B-Instruct-V1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
prompt = "Write a Rust function that compiles to WebAssembly and adds two numbers."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
To process long inputs (e.g., full source files or compiler traces), use YaRN-based RoPE scaling:
Add this to config.json:
{
"rope_scaling": {
"type": "yarn",
"factor": 4.0,
"original_max_position_embeddings": 32768
}
}
📧 For questions, collaborations, or commercial licensing: