DynamicMind-Mini-Instruct is the instruction-tuned version of
DynamicMind-Mini
. It was fully fine-tuned on
HuggingFaceTB/smol-smoltalk
with loss applied only to assistant tokens and the assistant-ending EOS token.
The model has about 8.9M, a
1,024-token context window
, and a custom
8,192-token digit-aware byte-level BPE tokenizer
. It supports system prompts, multi-turn conversations, and KV-cached generation.
Model Details
Field
Value
Parameters
8,884,992
Architecture
Custom Llama-style decoder
Layers
9
Hidden size
256
Intermediate size
768
Attention heads
8
KV heads
2
Vocabulary size
8,192
Context length
1,024
Embeddings
Tied input/output embeddings
Weight format
safetensors
Benchmarks
Usage
This model uses custom architecture code and must be loaded with
trust_remote_code=True
.
pip install -U transformers safetensors torch
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "DedeProGames/DynamicMind-Mini-Instruct"
device = "cuda"if torch.cuda.is_available() else"cpu"
dtype = torch.bfloat16 if device == "cuda"and torch.cuda.is_bf16_supported() else torch.float32
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=dtype,
).to(device).eval()
messages = [
{"role": "system", "content": "You are a concise and helpful assistant."},
{"role": "user", "content": "Hello!"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
)
inputs = {name: tensor.to(device) for name, tensor in inputs.items()}
with torch.inference_mode():
output = model.generate(
**inputs,
max_new_tokens=192,
do_sample=False,
repetition_penalty=1.1,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.eos_token_id,
use_cache=True,
)
new_tokens = output[0, inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))
For multi-turn chat, append the generated assistant response and the next user message to
messages
, then render the chat template again.
Runs of DedeProGames DynamicMind-Mini-Instruct on huggingface.co
40
Total runs
0
24-hour runs
1
3-day runs
-1
7-day runs
-15
30-day runs
More Information About DynamicMind-Mini-Instruct huggingface.co Model
More DynamicMind-Mini-Instruct license Visit here:
DynamicMind-Mini-Instruct huggingface.co is an AI model on huggingface.co that provides DynamicMind-Mini-Instruct's model effect (), which can be used instantly with this DedeProGames DynamicMind-Mini-Instruct model. huggingface.co supports a free trial of the DynamicMind-Mini-Instruct model, and also provides paid use of the DynamicMind-Mini-Instruct. Support call DynamicMind-Mini-Instruct model through api, including Node.js, Python, http.
DynamicMind-Mini-Instruct huggingface.co is an online trial and call api platform, which integrates DynamicMind-Mini-Instruct's modeling effects, including api services, and provides a free online trial of DynamicMind-Mini-Instruct, you can try DynamicMind-Mini-Instruct online for free by clicking the link below.
DedeProGames DynamicMind-Mini-Instruct online free url in huggingface.co:
DynamicMind-Mini-Instruct is an open source model from GitHub that offers a free installation service, and any user can find DynamicMind-Mini-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of DynamicMind-Mini-Instruct install, users can directly use DynamicMind-Mini-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
DynamicMind-Mini-Instruct install url in huggingface.co: