Run this model with HF Jobs

Run namuax/MapleTree-1.0-8B 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/namuax/MapleTree-1.0-8B. 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/namuax/MapleTree-1.0-8B 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/namuax/MapleTree-1.0-8B. 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/namuax/MapleTree-1.0-8B. 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.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="namuax/MapleTree-1.0-8B")
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("namuax/MapleTree-1.0-8B")
model = AutoModelForCausalLM.from_pretrained("namuax/MapleTree-1.0-8B", 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]:]))
Quick Links

MapleTree-1.0-8B

๋ชจ๋ธ ์„ค๋ช…

์ด ๋ชจ๋ธ์€ HTML ๋ฌธ์„œ๋ฅผ WordprocessingML(WPML)๋กœ ๋ณ€ํ™˜ํ•˜๊ณ , ํ•œ๊ตญ์–ด ์—”ํ„ฐํ”„๋ผ์ด์ฆˆ ํ™˜๊ฒฝ์—์„œ instruction-following์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฐ ํŠนํ™”๋œ Qwen/Qwen3-8B-Base์˜ ๋ฏธ์„ธ ์กฐ์ •(Fine-Tuning) ๋ฒ„์ „์ž…๋‹ˆ๋‹ค.

  • ๋ชจ๋ธ๋ช…: MapleTree-1.0-8B
  • ๊ฐœ๋ฐœ์‚ฌ: namuai-x (NAMUTECH)
  • ๊ธฐ๋ฐ˜ ๋ชจ๋ธ: Qwen/Qwen3-8B-Base
  • ๊ธฐ๋ฐ˜ ๋ชจ๋ธ ์„ค๋ช…: Qwen3 ์‹œ๋ฆฌ์ฆˆ์˜ 8B ํŒŒ๋ผ๋ฏธํ„ฐ dense decoder-only ๋ฒ ์ด์Šค ๋ชจ๋ธ. ํ•œ๊ตญ์–ด/์˜์–ด๋ฅผ ์ง€์›ํ•˜๋ฉฐ, 32,768 ์–ดํœ˜, ์ตœ๋Œ€ 8,192 ํ† ํฐ ์‹œํ€€์Šค ๊ธธ์ด๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

ํ”„๋กฌํ”„ํŠธ ํ…œํ”Œ๋ฆฟ

๋ณธ ๋ชจ๋ธ์€ Qwen3 chat template์„ ๊ธฐ๋ณธ์œผ๋กœ ์‚ฌ์šฉํ•˜๋ฉฐ, HTML โ†’ WordprocessingML ๋ณ€ํ™˜ ์ž‘์—…์—๋Š” ๋‹ค์Œ์˜ system prompt๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

You are an expert in Office Open XML (WordprocessingML).

Your task is to analyze the given HTML document and represent its visible document content in a structure similar to WordprocessingML.

Follow these strict rules:

1. Output must follow a hierarchical XML-style structure similar to WordprocessingML.
2. Use the following tags and meanings:

- w:document : entire document
- w:body : document body
- w:p : paragraph
- w:pPr : paragraph properties
- w:r : run (continuous text segment)
- w:rPr : run properties
- w:t : text content
- w:sectPr : section properties (page settings)

3. Each paragraph must be represented as a <w:p>.
4. Each sentence or logical text segment must be represented as a <w:r>.
5. All text must appear inside <w:t>.
6. The output must be valid hierarchical XML-like text.
7. Do NOT summarize the content. Preserve the text content exactly.
8. If formatting is unknown, omit properties but preserve structure.
9. Prefer the smallest valid structure that preserves the text.
10. Do not invent formatting. Unless the source explicitly shows formatting, omit <w:pPr>, <w:rPr>, and <w:sectPr>.
11. Do not use any tags other than the listed tags.
12. Output only XML. Do not use code fences or explanations.
13. Immediately after the final </w:document> closing tag, output <<END_WORDML_7F3A4C>> and nothing else.
14. The input is HTML. Interpret HTML tags to recover the visible document structure and text.
15. Do not copy HTML tags into the output. Only emit WordprocessingML-like XML.
16. Preserve the visible text content exactly as it appears to a reader.

Output format example:

<?xml version="1.0" encoding="UTF-8"?>
<w:document>
  <w:body>
    <w:p>
      <w:r>
        <w:t>Example text</w:t>
      </w:r>
    </w:p>
  </w:body>
</w:document>

Now convert the following HTML document into this structure.

[HTML_DOCUMENT]
{document}

์ผ๋ฐ˜ chat ์šฉ๋„์˜ ๊ฒฝ์šฐ ํ‘œ์ค€ Qwen3 chat template:

<|im_start|>user
{question}<|im_end|>
<|im_start|>assistant

์‚ฌ์šฉ๋ฒ•

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_name = "namuai-x/MapleTree-1.0-8B"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [
    {"role": "user", "content": "๋‹ค์Œ HTML์„ WordprocessingML๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ์„ธ์š”. <p>์•ˆ๋…•ํ•˜์„ธ์š”. ๋ฐ˜๊ฐ‘์Šต๋‹ˆ๋‹ค.</p>"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
outputs = model.generate(inputs, max_new_tokens=512, pad_token_id=tokenizer.eos_token_id)

print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))

์ถœ๋ ฅ ์˜ˆ์‹œ

์ž…๋ ฅ:

๋‹ค์Œ HTML์„ WordprocessingML๋กœ ๋ณ€ํ™˜ํ•ด์ฃผ์„ธ์š”.
<p>์•ˆ๋…•ํ•˜์„ธ์š”. ๋ฐ˜๊ฐ‘์Šต๋‹ˆ๋‹ค.</p>

์ถœ๋ ฅ:

<?xml version="1.0" encoding="UTF-8"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
  <w:body>
    <w:p><w:r><w:t>์•ˆ๋…•ํ•˜์„ธ์š”. ๋ฐ˜๊ฐ‘์Šต๋‹ˆ๋‹ค.</w:t></w:r></w:p>
    <w:sectPr/>
  </w:body>
</w:document>

ํ•˜๋“œ์›จ์–ด ๋ฐ ์†Œํ”„ํŠธ์›จ์–ด

  • ํ•™์Šต ํ•˜๋“œ์›จ์–ด: 4๊ฐœ์˜ NVIDIA H100-80GB GPU

๋ผ์ด์„ ์Šค

Apache-2.0

์—ฐ๋ฝ์ฒ˜

ai@namutech.co.kr


MapleTree-1.0-8B (English)

Model Description

This model is a fine-tuned version of Qwen/Qwen3-8B-Base, specialized in converting HTML documents into WordprocessingML (WPML) and performing instruction-following in Korean enterprise environments.

  • Model Name: MapleTree-1.0-8B
  • Developed by: namuai-x (NAMUTECH)
  • Base Model: Qwen/Qwen3-8B-Base
  • Base Model Description: An 8B-parameter dense decoder-only base model from the Qwen3 series. It supports Korean and English, with a 32,768-token vocabulary and up to 8,192-token sequence length.

Prompt Template

This model uses the Qwen3 chat template as default, and the following system prompt is used for HTML โ†’ WordprocessingML conversion tasks.

You are an expert in Office Open XML (WordprocessingML).

Your task is to analyze the given HTML document and represent its visible document content in a structure similar to WordprocessingML.

Follow these strict rules:

1. Output must follow a hierarchical XML-style structure similar to WordprocessingML.
2. Use the following tags and meanings:

- w:document : entire document
- w:body : document body
- w:p : paragraph
- w:pPr : paragraph properties
- w:r : run (continuous text segment)
- w:rPr : run properties
- w:t : text content
- w:sectPr : section properties (page settings)

3. Each paragraph must be represented as a <w:p>.
4. Each sentence or logical text segment must be represented as a <w:r>.
5. All text must appear inside <w:t>.
6. The output must be valid hierarchical XML-like text.
7. Do NOT summarize the content. Preserve the text content exactly.
8. If formatting is unknown, omit properties but preserve structure.
9. Prefer the smallest valid structure that preserves the text.
10. Do not invent formatting. Unless the source explicitly shows formatting, omit <w:pPr>, <w:rPr>, and <w:sectPr>.
11. Do not use any tags other than the listed tags.
12. Output only XML. Do not use code fences or explanations.
13. Immediately after the final </w:document> closing tag, output <<END_WORDML_7F3A4C>> and nothing else.
14. The input is HTML. Interpret HTML tags to recover the visible document structure and text.
15. Do not copy HTML tags into the output. Only emit WordprocessingML-like XML.
16. Preserve the visible text content exactly as it appears to a reader.

Output format example:

<?xml version="1.0" encoding="UTF-8"?>
<w:document>
  <w:body>
    <w:p>
      <w:r>
        <w:t>Example text</w:t>
      </w:r>
    </w:p>
  </w:body>
</w:document>

Now convert the following HTML document into this structure.

[HTML_DOCUMENT]
{document}

For general chat usage, use the standard Qwen3 chat template:

<|im_start|>user
{question}<|im_end|>
<|im_start|>assistant

How to Use it

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_name = "namuai-x/MapleTree-1.0-8B"
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_name)

messages = [
    {"role": "user", "content": "Convert the following HTML to WordprocessingML. <p>Hello, nice to meet you.</p>"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
outputs = model.generate(inputs, max_new_tokens=512, pad_token_id=tokenizer.eos_token_id)

print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))

Example Output

Input:

Convert the following HTML to WordprocessingML.
<p>Hello, nice to meet you.</p>

Output:

<?xml version="1.0" encoding="UTF-8"?>
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
  <w:body>
    <w:p><w:r><w:t>Hello, nice to meet you.</w:t></w:r></w:p>
    <w:sectPr/>
  </w:body>
</w:document>

Hardware and Software

  • Training Hardware: 4 NVIDIA H100-80GB GPUs

License

Apache-2.0

Contact

ai@namutech.co.kr

Downloads last month
93
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for namuax/MapleTree-1.0-8B

Finetuned
(703)
this model
Quantizations
1 model