Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| NuminaMath-7B-TIR.Q2_K.gguf | Q2_K | 2.53GB |
| NuminaMath-7B-TIR.IQ3_XS.gguf | IQ3_XS | 2.79GB |
| NuminaMath-7B-TIR.IQ3_S.gguf | IQ3_S | 2.92GB |
| NuminaMath-7B-TIR.Q3_K_S.gguf | Q3_K_S | 2.92GB |
| NuminaMath-7B-TIR.IQ3_M.gguf | IQ3_M | 3.06GB |
| NuminaMath-7B-TIR.Q3_K.gguf | Q3_K | 3.22GB |
| NuminaMath-7B-TIR.Q3_K_M.gguf | Q3_K_M | 3.22GB |
| NuminaMath-7B-TIR.Q3_K_L.gguf | Q3_K_L | 3.49GB |
| NuminaMath-7B-TIR.IQ4_XS.gguf | IQ4_XS | 3.56GB |
| NuminaMath-7B-TIR.Q4_0.gguf | Q4_0 | 3.73GB |
| NuminaMath-7B-TIR.IQ4_NL.gguf | IQ4_NL | 3.74GB |
| NuminaMath-7B-TIR.Q4_K_S.gguf | Q4_K_S | 3.75GB |
| NuminaMath-7B-TIR.Q4_K.gguf | Q4_K | 3.93GB |
| NuminaMath-7B-TIR.Q4_K_M.gguf | Q4_K_M | 3.93GB |
| NuminaMath-7B-TIR.Q4_1.gguf | Q4_1 | 4.1GB |
| NuminaMath-7B-TIR.Q5_0.gguf | Q5_0 | 4.48GB |
| NuminaMath-7B-TIR.Q5_K_S.gguf | Q5_K_S | 4.48GB |
| NuminaMath-7B-TIR.Q5_K.gguf | Q5_K | 4.59GB |
| NuminaMath-7B-TIR.Q5_K_M.gguf | Q5_K_M | 4.59GB |
| NuminaMath-7B-TIR.Q5_1.gguf | Q5_1 | 4.86GB |
| NuminaMath-7B-TIR.Q6_K.gguf | Q6_K | 5.28GB |
| NuminaMath-7B-TIR.Q8_0.gguf | Q8_0 | 6.84GB |
1
2# Find all pairs (r1, r2) such that r1 * r2 = 36 product_36 = 36
3factor_pairs = []
4
5for i in range(1, product_36 + 1):
6 if product_36 % i == 0:
7 pair = (i, product_36 // i)
8 if pair[0] != pair[1]: # Ensure distinct pairs
9 factor_pairs.append(pair)
10
11 # Calculate k for each pair and ensure distinct integer roots
12 valid_k_values = set()
13 for r1, r2 in factor_pairs:
14 if r1 != r2:
15 k = -(r1 + r2)
16 valid_k_values.add(k)
17
18 print((len(valid_k_values), sorted(valid_k_values)))(4, [-37, -20, -15,-13])

pipeline() function from 🤗 Transformers:1import re
2import torch
3from transformers import pipeline
4
5pipe = pipeline("text-generation", model="AI-MO/NuminaMath-7B-TIR", torch_dtype=torch.bfloat16, device_map="auto")
6
7messages = [
8 {"role": "user", "content": "For how many values of the constant $k$ will the polynomial $x^{2}+kx+36$ have two distinct integer roots?"},
9]
10prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
11
12gen_config = {
13 "max_new_tokens": 1024,
14 "do_sample": False,
15 "stop_strings": ["```output"], # Generate until Python code block is complete
16 "tokenizer": pipe.tokenizer,
17}
18
19outputs = pipe(prompt, **gen_config)
20text = outputs[0]["generated_text"]
21print(text)
22
23# WARNING: This code will execute the python code in the string. We show this for eductional purposes only.
24# Please refer to our full pipeline for a safer way to execute code.
25python_code = re.findall(r"```python(.*?)```", text, re.DOTALL)[0]
26exec(python_code)@misc{numina_math_7b,
author = {Edward Beeching and Shengyi Costa Huang and Albert Jiang and Jia Li and Benjamin Lipkin and Zihan Qina and Kashif Rasul and Ziju Shen and Roman Soletskyi and Lewis Tunstall},
title = {NuminaMath 7B TIR},
year = {2024},
publisher = {Numina & Hugging Face},
journal = {Hugging Face repository},
howpublished = {\url{https://huggingface.co/AI-MO/NuminaMath-7B-TIR}}
}