-
Mi:dm 2.0 Base
An 11.5B parameter dense model designed to balance model size and performance.
It extends an 8B-scale model by applying the Depth-up Scaling (DuS) method, making it suitable for real-world applications that require both performance and versatility.
-
Mi:dm 2.0 Mini
A lightweight 2.3B parameter dense model optimized for on-device environments and systems with limited GPU resources.
It was derived from the Base model through pruning and distillation to enable compact deployment.
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
3
4model_name = "K-intelligence/Midm-2.0-Mini-Instruct"
5
6model = AutoModelForCausalLM.from_pretrained(
7 model_name,
8 torch_dtype=torch.bfloat16,
9 trust_remote_code=True,
10 device_map="auto"
11)
12tokenizer = AutoTokenizer.from_pretrained(model_name)
13generation_config = GenerationConfig.from_pretrained(model_name)
14
15prompt = "KT에 대해 소개해줘"
16
17# message for inference
18messages = [
19 {"role": "system",
20 "content": "Mi:dm(믿:음)은 KT에서 개발한 AI 기반 어시스턴트이다."},
21 {"role": "user", "content": prompt}
22]
23
24input_ids = tokenizer.apply_chat_template(
25 messages,
26 tokenize=True,
27 add_generation_prompt=True,
28 return_tensors="pt"
29)
30
31output = model.generate(
32 input_ids.to("cuda"),
33 generation_config=generation_config,
34 eos_token_id=tokenizer.eos_token_id,
35 max_new_tokens=128,
36 do_sample=False,
37)
38print(tokenizer.decode(output[0]))
We provide a detailed description about running Mi:dm 2.0 on your local machine using llama.cpp, LM Studio, and Ollama. Please check our
github for more information
To serve Mi:dm 2.0 using
vLLM(
>=0.8.0) with an OpenAI-compatible API:
For advanced function calling tasks, you can serve Mi:dm 2.0 with our own tool parser:
To help our end-users easily use Mi:dm 2.0, we have provided comprehensive tutorials on
github.
-
The training data for both Mi:dm 2.0 models consists primarily of English and Korean. Understanding and generation in other languages are not guaranteed.
-
The model is not guaranteed to provide reliable advice in fields that require professional expertise, such as law, medicine, or finance.
-
Researchers have made efforts to exclude unethical content from the training data — such as profanity, slurs, bias, and discriminatory language. However, despite these efforts, the model may still produce inappropriate expressions or factual inaccuracies.
Mi:dm 2.0 is licensed under the
MIT License.
Mi:dm 2.0 Technical Inquiries:
midm-llm@kt.com