Views
No views yet
release/YanoljaNEXT-EEVE-Rosetta-7B-2602.release/YanoljaNEXT-EEVE-Rosetta-7B-2602-FP8ByteDance-Seed/Seed-X-PPO-7BMistralForCausalLMGemmaTokenizerFast (expanded vocabulary)161696819232768 (architectural limit, not the training context length)transformers FineGrainedFP8Config with:quant_method: fp8activation_scheme: dynamicweight_block_size: [128, 128]lm_head, model.embed_tokenstransformers library as follows:1import json
2import torch
3from transformers import AutoTokenizer, AutoModelForCausalLM
4
5model_id = "yanolja/YanoljaNEXT-EEVE-Rosetta-7B-2602-FP8"
6model = AutoModelForCausalLM.from_pretrained(
7 model_id,
8 dtype=torch.bfloat16,
9 device_map="auto",
10)
11tokenizer = AutoTokenizer.from_pretrained(model_id)
12
13target_language = "Korean"
14context = {
15 "context": "Simple introduction about a tech company.",
16 "tone": "Informative and helpful",
17 "glossary": {
18 "Yanolja NEXT": "야놀자넥스트",
19 "travel industry": "여행 산업",
20 }
21}
22
23system = [f"Translate the user's text to {target_language}."]
24for key, value in context.items():
25 key_pascal = key.capitalize()
26 if isinstance(value, dict):
27 system.append(f"{key_pascal}:")
28 for f, t in value.items():
29 system.append(f"- {f} -> {t}")
30 else:
31 system.append(f"{key_pascal}: {value}")
32
33system.append("Output format: JSON")
34system.append("Provide the final translation immediately without any other text.")
35
36source = {
37 "company_name": "Yanolja NEXT",
38 "description": "Yanolja NEXT is a company that provides cutting-edge "
39 "technology for the global travel industry.",
40}
41
42messages = [
43 {"role": "system", "content": "\n".join(system)},
44 {"role": "user", "content": json.dumps(source, ensure_ascii=False)},
45]
46
47prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
48print(prompt)
49# <bos><start_of_turn>instruction
50# Translate the user's text to Korean.
51# Context: Simple introduction about a tech company.
52# Tone: Informative and helpful
53# Glossary:
54# - Yanolja NEXT -> 야놀자넥스트
55# - travel industry -> 여행 산업
56# Output format: JSON
57# Provide the final translation immediately without any other text.<end_of_turn>
58# <start_of_turn>source
59# {"company_name": "Yanolja NEXT", "description": "Yanolja NEXT is a company that provides cutting-edge technology for the global travel industry."}<end_of_turn>
60# <start_of_turn>translation
61
62inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
63input_length = inputs["input_ids"].shape[1]
64
65with torch.inference_mode():
66 outputs = model.generate(
67 **inputs,
68 max_new_tokens=64,
69 )
70
71generated_tokens = outputs[0][input_length:]
72translation = tokenizer.decode(generated_tokens, skip_special_tokens=True)
73
74print(json.dumps(json.loads(translation), indent=2, ensure_ascii=False))
75# {
76# "company_name": "야놀자넥스트",
77# "description": "야놀자넥스트는 글로벌 여행 산업에 최첨단 기술을 제공하는 회사입니다."
78# }EEVE-Rosetta-7B-2602 release.ByteDance-Seed/Seed-X-PPO-7B is distributed under OpenMDW-1.0, and this derivative follows those terms.LICENSENOTICETHIRD_PARTY_LICENSES.md@misc{yanolja2026yanoljanexteeverosetta7b,
author = {Yanolja NEXT Co., Ltd.},
title = {YanoljaNEXT-EEVE-Rosetta-7B-2602},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face repository},
howpublished = {\\url{https://huggingface.co/yanolja/YanoljaNEXT-EEVE-Rosetta-7B-2602}}
}@misc{cheng2025seedxbuildingstrongmultilingual,
title = {Seed-X: Building Strong Multilingual Translation LLM with 7B Parameters},
author = {Shanbo Cheng and Yu Bao and Qian Cao and Luyang Huang and Liyan Kang and Zhicheng Liu and Yu Lu and Wenhao Zhu and Jingwen Chen and Zhichao Huang and Tao Li and Yifu Li and Huiying Lin and Sitong Liu and Ningxin Peng and Shuaijie She and Lu Xu and Nuo Xu and Sen Yang and Runsheng Yu and Yiming Yu and Liehao Zou and Hang Li and Lu Lu and Yuxuan Wang and Yonghui Wu},
year = {2025},
eprint = {2507.13618},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2507.13618}
}
@misc{gemma3,
author = {Google},
title = {Gemma 3},
year = {2024},
publisher = {Google DeepMind},
howpublished = {\\url{https://deepmind.google/models/gemma/gemma-3/}}
}