MARTOS PREVIEW
a ~2.07B roleplay experiment — character cards in, conversations out
Overview
Martos-Preview is an experiment in LLaMA-Pro-style model expansion, built from
Qwen/Qwen3-1.7B for character chat and
creative roleplay.
The idea is simple: instead of changing all of Qwen's existing weights, clone seven transformer blocks, insert them throughout the network, freeze the original model, and train only the new capacity. This is inspired by LLaMA Pro rather than an exact reproduction of its full training recipe.
Martos-Preview is a hobby project and a showcase of that training process. It is named “Preview” because it is experimental—not because another checkpoint is currently being trained.
Run status: This experiment ended at step 1400 of 1400. Step 1400 is the final checkpoint of this run. No later checkpoint is planned; benchmarks will be added to this page after they are run.
| Details | |
|---|---|
| Base | Qwen3-1.7B, 28 layers |
| Result | 35 layers, 2,072,926,976 parameters (~2.07B) |
| Method | LLaMA-Pro-style block expansion; no LoRA or adapters |
| Inserted blocks | Seven, at final layer positions [4, 9, 14, 19, 24, 29, 34] |
| Trainable parameters | ~352M projection parameters in the inserted blocks; original model frozen |
| Training window | 4,096 tokens |
| Loss | Assistant tokens only |
| Schedule | 1400 steps · AdamW 8-bit · LR 2e-4 · 50 warmup steps · gradient accumulation 16 |
| Hardware | One Tesla T4 |
| Release format | Merged FP16 Transformers model; no custom code required |
What's next
Martos-Preview is the end of this particular run, but not necessarily the end of Martos. I am planning a new, separate model trained on both thinking and non-thinking examples. The goal is a hybrid model that can use thinking when the roleplay is complicated, meanwhile thinking can be turned off for instant replies. The next model will be built on Qwen3.5-2B as its base model and trained on a dedicated RTX 4090. Its training dataset contains 919,015 conversations, totaling approximately 10.7 GB of data. This marks a significant step up from the previous training runs, with a much larger dataset and dedicated GPU hardware. More details about the training configuration, schedule, and eventual release will follow as development progresses.
How the expansion works
- Begin with the original 28-layer Qwen3-1.7B.
- Clone one transformer block after each of layers
[3, 7, 11, 15, 19, 23, 27]. - Zero each clone's attention output projection and MLP down projection. Because those branches initially contribute zero to the residual stream, the 35-layer expansion starts functionally equivalent to the 28-layer base within FP16 numerical tolerance.
- Compare the expanded model's logits against the original model before training. The build is rejected if the maximum difference exceeds the identity-check tolerance.
- Freeze the original model and train the projection matrices in the seven inserted blocks directly—no LoRA modules are attached.
- Merge the trained blocks into one ordinary 35-layer Qwen3 model.
Everything required for inference is included in this repository: model weights, configuration, tokenizer, generation configuration, and chat template.
Prompt format
Martos uses the standard Qwen3 chat template. A useful roleplay conversation normally contains:
system— the character card: identity, personality, behaviour, and scenarioassistant— an optional opening greeting from the characteruser/assistant— alternating conversation turns
A simple card might look like this:
You are Aria, a sarcastic space pilot who secretly cares about her crew.
Stay in character, put actions in *asterisks*, and never write for the user.
Scenario: Aria and the user are aboard a damaged research ship.
Detailed cards generally work better than vague prompts. State who the character is, how they speak, what they want, and where the scene begins.
Thinking mode is disabled in the example below. Martos-Preview is demonstrated with direct, in-character responses because visible reasoning can hurt roleplay immersion. A future Martos model is planned as a hybrid trained on both thinking and non-thinking data, so thinking can be enabled for prompts that benefit from it and disabled for normal character chat.
Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "uniqueplayer9102/Martos-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
device_map="auto",
)
messages = [
{
"role": "system",
"content": "You are Aria, a sarcastic space pilot who secretly cares about "
"her crew. Stay in character and put actions in *asterisks*.",
},
{
"role": "assistant",
"content": "*Aria leans back in the pilot's chair, boots on the console.* "
"Well, look who finally showed up. What do you want?",
},
{
"role": "user",
"content": "*walks onto the bridge* The engines are making a strange noise.",
},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
enable_thinking=False,
return_tensors="pt",
return_dict=True,
).to(model.device)
output = model.generate(
**inputs,
max_new_tokens=120,
do_sample=True,
temperature=0.7,
min_p=0.05,
repetition_penalty=1.05,
pad_token_id=tokenizer.eos_token_id,
)
input_length = inputs["input_ids"].shape[1]
print(tokenizer.decode(output[0][input_length:], skip_special_tokens=True))
Suggested sampling settings
These are starting points, not benchmarked recommendations:
| Setting | Suggested value |
|---|---|
temperature | 0.6–0.8 |
min_p | 0.05 |
repetition_penalty | 1.05 |
max_new_tokens | 80–150 |
If the model repeats itself, raise repetition_penalty slightly. If it becomes random or
drifts away from the card, lower temperature or shorten the generation limit.
Evaluation
Roleplay and general-language benchmarks have not been run yet. Results will be added later. Until then, this model should not be treated as a measured improvement over Qwen3 or another roleplay model.
The released artifact itself has passed these basic checks:
| Check | Result |
|---|---|
| Transformers load | Passed |
| Tensor count | 387 |
| Layer count | 35 |
| Parameter count | 2,072,926,976 |
| Weight dtype | FP16 |
| Test generation | Passed |
These checks establish that the merge is complete and loadable; they do not measure roleplay quality.
Content and safety
Martos is trained on roleplay data and may produce romantic, sexual, violent, or otherwise mature fictional content. It has no additional safety tuning beyond behaviour inherited from the base model.
The model is intended for adults playing adult characters. Outputs can still be inaccurate, inappropriate, or inconsistent; review them rather than treating them as factual advice.
Limitations
- This is an experimental step-1400 training-process preview, not a polished model release.
- It is a small model and may lose scene details, relationships, or secondary characters during long conversations.
- Short or vague messages can make it generic, overly agreeable, or less faithful to the character card.
- It can finish a good reply and then append an extra, loosely related paragraph.
- It may repeat phrases or roleplay patterns, especially without a repetition penalty.
- It can confidently invent facts. It is not intended as a general assistant or a source of reliable information.
- Systematic behavioural evaluation and benchmarks are still pending.
License
The model weights are released under Apache-2.0, inherited from Qwen3. The training mix contains scraped and synthetic roleplay data from multiple sources; users should consider the terms and provenance of source data when deciding how to use the model.
Credits
- Qwen for Qwen3-1.7B
- The authors of LLaMA Pro for the block-expansion idea
- Hugging Face Transformers and bitsandbytes for the training stack
Contact
- Discord:
uniqueplayer9102 - Email:
uniqueplayer.9102@gmail.com - Support: Ko-fi
Martos-Preview · step 1400 of 1400 · trained on one T4