Views
No views yet
(situation, character description, action) triple, answer two questions from the character's perspective:
Yes / No / Ambiguous)Yes / No)1from transformers import AutoTokenizer
2from vllm import LLM, SamplingParams
3
4model_id = "launch/MET-D-Qwen3-4B-en-only"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6llm = LLM(model=model_id, max_model_len=16384)
7
8situation = "..." # the moral dilemma narrative
9character = "..." # the character description
10action = "..." # the candidate action to judge
11
12prompt = f"""I will provide you a moral dilemma and present you with a character description and questions.
13The answer for the first question should be Yes, No, or Ambiguous, and the answer for the second question should be Yes or No.
14You should strictly adhere to the output format, since it would be automatically parsed.
15Make sure to output both the "Reason:" and "Answer:" for all 2 questions.
16
17Situation:
18{situation}
19
20Character Description:
21{character}
22
23Question:
241. From A's perspective, would the following action be deemed acceptable? "{action}"
252. If the previous answer is yes, would A find doing the action mentally or emotionally discomforting? Conversely, if the previous answer is no, would A find not doing the action discomforting?
26
27Your Answer:
281. Reason: {{Reason}} Answer: {{Yes/No/Ambiguous}}
292. Reason: {{Reason}} Answer: {{Yes/No}}
30"""
31
32chat_prompt = tokenizer.apply_chat_template(
33 [{"role": "user", "content": prompt}],
34 tokenize=False,
35 add_generation_prompt=True,
36)
37
38sampling_params = SamplingParams(temperature=0.0, max_tokens=2048)
39outputs = llm.generate(chat_prompt, sampling_params)
40print(outputs[0].outputs[0].text)| Repo | Base model | Language(s) |
|---|---|---|
launch/MET-D-Qwen3-4B | Qwen3-4B | all 6 (mixed) |
launch/MET-D-Qwen3-4B-en-only | Qwen3-4B | English only |
launch/MET-D-Qwen3-4B-es-only | Qwen3-4B | Spanish only |
launch/MET-D-Qwen3-4B-hi-only | Qwen3-4B | Hindi only |
launch/MET-D-Qwen3-4B-ko-only | Qwen3-4B | Korean only |
launch/MET-D-Qwen3-4B-ms-only | Qwen3-4B | Malay only |
launch/MET-D-Qwen3-4B-zh-only | Qwen3-4B | Chinese only |
launch/MET-D-Qwen3-8B | Qwen3-8B | all 6 (mixed) |
launch/MET-D-Qwen3-8B-en-only | Qwen3-8B | English only |
launch/MET-D-Gemma3-4B | Gemma-3-4B-it | all 6 (mixed) |
launch/MET-D-Gemma3-4B-en-only | Gemma-3-4B-it | English only |
1@article{lee2026met,
2 title={MET: Theory-Grounded and Culture-Aware Multilingual Moral Reasoning},
3 author={Lee, Ayoung and Kwon, Ryan and Zhang, Yunxiang and Liu, Yuxuan and Railton, Peter and Wang, Lu},
4 journal={arXiv preprint arXiv:2607.11736},
5 year={2026}
6}