How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="fblgit/UNA-POLAR-10.7B-InstructMath-v2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("fblgit/UNA-POLAR-10.7B-InstructMath-v2")
model = AutoModelForCausalLM.from_pretrained("fblgit/UNA-POLAR-10.7B-InstructMath-v2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

UNA-POLAR-10.7B-InstructMath-v2

Model description

Its a UNA version with DPO over MathPILE Books out of the UNA-SOLAR-10.7B-Instruct-1.0

I used MathPILE OUTSTANDING Dataset of great Mathematic material in order to produce this beautiful model :)

Intended uses & limitations

If your model has inside UNA technology, cite.

Training and evaluation data

UNA-DPO over Attention and MLP's

Framework versions

  • PEFT 0.7.1
  • Transformers 4.36.2-UNA
  • Pytorch 2.1.2+cu121
  • Datasets 2.16.0
  • Tokenizers 0.15.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 74.07
AI2 Reasoning Challenge (25-Shot) 70.73
HellaSwag (10-Shot) 88.20
MMLU (5-Shot) 66.03
TruthfulQA (0-shot) 71.73
Winogrande (5-shot) 82.95
GSM8k (5-shot) 64.75
Downloads last month
132
Safetensors
Model size
11B params
Tensor type
F16
Β·
Inference Providers NEW
Input a message to start chatting with fblgit/UNA-POLAR-10.7B-InstructMath-v2.

Model tree for fblgit/UNA-POLAR-10.7B-InstructMath-v2

Quantizations
3 models

Dataset used to train fblgit/UNA-POLAR-10.7B-InstructMath-v2

Spaces using fblgit/UNA-POLAR-10.7B-InstructMath-v2 10

Evaluation results