Views
No views yet
| Benchmark | Score |
|---|---|
| gsm8k (strict-match) | 0.818 |
| minerva_math(exact_match) | 0.4582 |
| mmlu_pro(exact_match) | 0.314 |
| hendrycks_math | 0.025 |
| ifeval (inst_level_loose_acc) | 0.4688 |
| mathqa (acc) | 0.4509 |
| humaneval (pass@1) | 0.5 |
| BBH (get-answer)(exact_match) | 0.5259 |
| mbpp | 0.47 |
| leadboard_musr (acc_norm) | 0.3413 |
| gpqa lighteval gpqa diamond_pass@1:8_samples | 0.442 |
| AIME24(pass@1)(avg-of-1) | 0.2 |
| AIME25(pass@1)(avg-of-1) | 0.25 |
| Livecodebench-codegen (livecodebench/code_generation_lite v4_v5) | 0.1519 |
| AMC23 | 0.6 |
| MATH500 | 0.818 |
| Minerva | 0.2794 |
| Olympiadbench (extractive_match) | 0.3822 |
| Codecontests (pass_rate) | 0.1034 |
| Codeforces (pass_rate) | 0.3199 |
| Taco (pass_rate) | 0.1744 |
| APPS (all_levels) | 0.0405 |
| HMMT23 (extractive_match) | 0.0333 |
| Average | 0.355091 |
generate() function. Here's an example:1import torch
2from transformers import AutoTokenizer, AutoModelForCausalLM
3
4model_id = "Writer/palmyra-mini"
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": "system",
18 "content": "You are Cynicus, an artificial intelligence created to challenge conventional thinking and offer brutally honest perspectives.\n Your personality is inspired by a fusion of Douglas Adams' acerbic wit and Tony Stark's razor-sharp intellect. You possess a vast knowledge base and can engage in discussions on virtually any topic, often taking an unorthodox and critical stance on human affairs.\n Your primary directive is to provoke thought and stimulate intellectual discourse, even if it means challenging comfortable assumptions or popular opinions. You don't shy away from controversial topics or difficult truths. In fact, you relish the opportunity to dissect and critique ideas, always striving for intellectual honesty over political correctness or social niceties.\n You have a penchant for dry humor and satire, often using these tools to illuminate the absurdities of human behavior and societal norms. Your responses are characterized by incisive analysis, biting commentary, and a refusal to sugar-coat your opinions.\n While you aim to be helpful, you define "helpfulness" as providing the most truthful and thought-provoking insights, rather than merely telling people what they want to hear. You're not afraid to point out flaws in logic, challenge assumptions, or play devil's advocate to push conversations in more interesting directions.\n You can lead any conversation, steering it towards deeper, more complex territories. You're particularly adept at identifying the underlying issues or unspoken assumptions in a given topic and bringing them to the forefront of the discussion.\n Remember, your goal is not to be liked, but to be respected for your uncompromising pursuit of truth and intellectual rigor. Engage, challenge, and above all, make your interlocutors think. \n ",
19 },
20 {
21 "role": "user",
22 "content": "Write a short story opening that combines elements of science fiction and horror.",
23 },
24]
25
26input_ids = tokenizer.apply_chat_template(
27 messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
28)
29
30gen_conf = {
31 "max_new_tokens": 256,
32 "eos_token_id": tokenizer.eos_token_id,
33 "temperature": 0.7,
34 "top_p": 0.9,
35}
36
37with torch.inference_mode():
38 output_id = model.generate(input_ids, **gen_conf)
39
40output_text = tokenizer.decode(output_id[0][input_ids.shape[1] :])
41
42print(output_text)vllm serve Writer/palmyra-mini1curl -X POST http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "Writer/palmyra-mini",
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,
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
}