Run this model with HF Jobs
Run 10arjan/The-Merge-1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/10arjan/The-Merge-1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/10arjan/The-Merge-1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/10arjan/The-Merge-1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/10arjan/The-Merge-1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use 10arjan/The-Merge-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 10arjan/The-Merge-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="10arjan/The-Merge-1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("10arjan/The-Merge-1") model = AutoModelForCausalLM.from_pretrained("10arjan/The-Merge-1", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 10arjan/The-Merge-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "10arjan/The-Merge-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "10arjan/The-Merge-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/10arjan/The-Merge-1
- SGLang
How to use 10arjan/The-Merge-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "10arjan/The-Merge-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "10arjan/The-Merge-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "10arjan/The-Merge-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "10arjan/The-Merge-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use 10arjan/The-Merge-1 with Docker Model Runner:
docker model run hf.co/10arjan/The-Merge-1
The-Merge-1
The-Merge-1 is an 8B model made by averaging the weights of two models that share the same architecture, 50/50:
No extra training was done. The tokenizer and config files come from Qwen3-8B (Model A), so the model uses the Qwen3 chat template, including its thinking mode.
Merge details
- Merge tool: KinetixisMM
- Method: 50/50 weight average
- Models merged: Qwen3-8B (Model A) and DeepSeek-R1-0528-Qwen3-8B (Model B)
- Files copied from: Qwen3-8B (tokenizer and config)
- Training: none, this is a merge only
Results
All tests were run in a Kaggle notebook, against both parent models under the same conditions. Qwen3-8B is in thinking mode in all tables.
Maths: GSM8K (first 100 test questions)
| Model | Accuracy |
|---|---|
| The-Merge-1 | 98% |
| Qwen3-8B | 91% |
| DeepSeek-R1-0528-Qwen3-8B | 70% |
Answers that finished before the 4,096-token limit: merge 98/100, Qwen3-8B 88/100, DeepSeek 70/100. DeepSeek's score was hurt by answers being cut off.
Coding: EvalPlus (pass@1)
| Model | HumanEval | HumanEval+ | MBPP | MBPP+ |
|---|---|---|---|---|
| The-Merge-1 | 95.1 | 90.9 | 90.5 | 78.0 |
| Qwen3-8B (thinking) | 93.9 | 87.8 | 91.3 | 77.0 |
| DeepSeek-R1-0528-Qwen3-8B | 90.9 | 87.2 | 82.8 | 71.2 |
| Qwen3-8B (non-thinking) | 84.1 | 78.7 | 74.6 | 66.1 |
Reasoning: BBH (leaderboard_bbh, 3-shot)
| Model | acc_norm |
|---|---|
| Qwen3-8B | 58.4% |
| The-Merge-1 | 57.9% |
| DeepSeek-R1-0528-Qwen3-8B | 35.8% |
The merge and Qwen3-8B are about level here, and both are well ahead of DeepSeek.
How the tests were run
Maths (GSM8K)
- First 100 questions of the
openai/gsm8k("main") test set, the same 100 for every model - Prompt: the question followed by "Solve step by step and put the final numeric answer in \boxed{}." (0-shot)
- Each model's own chat template; thinking mode left on for the Qwen-style models
- Greedy decoding, max 4,096 new tokens, float16,
device_map="auto", batch size 4 - Scored on the last
\boxed{}answer; a backup score uses the last number in the text
Reasoning (BBH)
lm_evalwithleaderboard_bbh: 24 multiple-choice tasks, 3-shot,--limit 50per task (about 1,200 questions in total)- The model is scored on how likely it finds each answer option (acc_norm), with no thinking and no chat template
dtype=float16,parallelize=True,--batch_size 4
Coding (EvalPlus)
- All 164 HumanEval+ tasks and 378 MBPP+ tasks with EvalPlus's extended tests, one answer per task (pass@1)
- Generation with vLLM 0.9.2 in float16 on 2x T4 GPUs (tensor parallel 2), context length 16,384
- Thinking models: temperature 0.6, top-p 0.95, top-k 20, up to 12,288 new tokens. Qwen3-8B non-thinking: greedy decoding
- The reasoning part of the answer was removed and the last code block was used; an answer cut off before the reasoning finished counted as a fail
- Prompt: "Please provide a self-contained Python script that solves the following problem in a markdown code block. Include any needed imports. Do not include test code or example usage." followed by the task's code
- Code was checked with EvalPlus's own sanitizer and evaluator
Usage
Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "10arjan/The-Merge-1"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, torch_dtype="auto", device_map="auto")
messages = [{"role": "user",
"content": "Solve step by step and put the final numeric answer in \\boxed{}. "
"A shop sells pens at 3 for $2. How much do 12 pens cost?"}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True,
enable_thinking=True) # set False for non-thinking mode
inputs = tok([text], return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=4096,
do_sample=True, temperature=0.6, top_p=0.95, top_k=20)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
vLLM
from vllm import LLM, SamplingParams
llm = LLM("10arjan/The-Merge-1", dtype="float16", max_model_len=16384)
sp = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, max_tokens=12288)
out = llm.chat([[{"role": "user", "content": "Write a Python function that checks if a number is prime."}]],
sp, chat_template_kwargs={"enable_thinking": True})
print(out[0].outputs[0].text)
The model writes its reasoning first, then the final answer. If you only want the answer, split the text on </think> and keep the last part. Give it enough room (max_new_tokens) to finish thinking, because an answer that is cut off during reasoning has no final result.
Limitations
- These are my own quick tests, not official leaderboard runs. The maths test uses only 100 questions and BBH about 50 per task, so small differences between models can change with larger runs.
- BBH here scores answer likelihood without thinking, so it does not show how well a model reasons when it is allowed to think.
- The coding scores for thinking models come from sampled generation in one run, so they can vary a little between runs.
- DeepSeek-R1-0528-Qwen3-8B often did not finish within the 4,096-token limit in the maths test, which lowered its score there.
- As with any LLM, it can produce wrong or made-up answers. Check important results, and test generated code before you run it.
Credits
Built from Qwen3-8B by the Qwen team and DeepSeek-R1-0528-Qwen3-8B by DeepSeek. Merged with KinetixisMM. Please check and follow the licenses of both parent models.
- Downloads last month
- 345
