Views
No views yet
| Benchmark | Score |
|---|---|
| gsm8k (strict-match) | 0.8287 |
| minerva_math(exact_match) | 0.3842 |
| mmlu_pro(exact_match) | 0.2748 |
| hendrycks_math | 0.0054 |
| ifeval (inst_level_loose_acc) | 0.3657 |
| mathqa (acc) | 0.4171 |
| humaneval (pass@1) | 0.2378 |
| BBH (get-answer)(exact_match) | 0.462 |
| mbpp | 0.304 |
| leadboard_musr (acc_norm) | 0.3413 |
| gpqa lighteval gpqa diamond_pass@1:8_samples | 0.3826 |
| AIME24(pass@1)(avg-of-1) | 0.4333 |
| AIME25(pass@1)(avg-of-1) | 0.3667 |
| Livecodebench-codegen (livecodebench/code_generation_lite v4_v5) | 0.1784 |
| AMC23 | 0.8 |
| MATH500 | 0.886 |
| Minerva | 0.3493 |
| Olympiadbench (extractive_match) | 0.5481 |
| Codecontests (pass_rate) | 0.1778 |
| Codeforces (pass_rate) | 0.5631 |
| Taco (pass_rate) | 0.3083 |
| APPS (all_levels) | 0.0447 |
| HMMT23 (extractive_match) | 0.1 |
| Average | 0.380839 |
generate() function. Here's an example:1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4model_id = "Writer/palmyra-mini-thinking-a"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7
8model = AutoModelForCausalLM.from_pretrained(
9 model_id,
10 torch_dtype=torch.float16,
11 device_map="auto",
12 attn_implementation="flash_attention_2",
13)
14
15messages = [
16 {
17 "role": "user",
18 "content": "You have a 3-liter jug and a 5-liter jug. How can you measure exactly 4 liters of water?"
19 }
20 ],
21
22input_ids = tokenizer.apply_chat_template(
23 messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
24)
25
26gen_conf = {
27 "max_new_tokens": 256,
28 "eos_token_id": tokenizer.eos_token_id,
29 "temperature": 0.3,
30 "top_p": 0.9,
31}
32
33with torch.inference_mode():
34 output_id = model.generate(input_ids, **gen_conf)
35
36output_text = tokenizer.decode(output_id[0][input_ids.shape[1] :])
37
38print(output_text)vllm serve Writer/palmyra-mini-thinking-a1curl -X POST http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "Writer/palmyra-mini-thinking-a",
5 "messages": [
6 {
7 "role": "user",
8 "content": "You have a 3-liter jug and a 5-liter jug. How can you measure exactly 4 liters of water?"
9 }
10 ],
11 "max_tokens": 8000,
12 "temperature": 0.2
13 }'@misc{Palmyra-mini-thinking-a,
author = {Writer Engineering team},
title = {{Palmyra-mini: A powerful LLM designed for math and coding}},
howpublished = {\url{https://dev.writer.com}},
year = 2025,
month = Sep
}