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.
Instructions to use namuax/MapleTree-1.0-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use namuax/MapleTree-1.0-8B with Transformers:
# 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use namuax/MapleTree-1.0-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "namuax/MapleTree-1.0-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "namuax/MapleTree-1.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/namuax/MapleTree-1.0-8B
- SGLang
How to use namuax/MapleTree-1.0-8B 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 "namuax/MapleTree-1.0-8B" \ --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": "namuax/MapleTree-1.0-8B", "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 "namuax/MapleTree-1.0-8B" \ --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": "namuax/MapleTree-1.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use namuax/MapleTree-1.0-8B with Docker Model Runner:
docker model run hf.co/namuax/MapleTree-1.0-8B
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
์ฐ๋ฝ์ฒ
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
- Downloads last month
- 93