Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

Benchmark gate

  • eval profile: math
  • gate: PASSED
checkvalueresult
gsm8k >= 0.050.4000pass
gsm8k improve >= 0.020.0700pass
arc_challenge regress <= 0.03-0.0500pass
hellaswag regress <= 0.030.0000pass
piqa regress <= 0.030.0200pass

lm-eval results

taskmetricbaselinecandidatedelta
arc_challengeacc,none0.32000.3700+0.0500
gsm8kexact_match,strict-match0.33000.4000+0.0700
hellaswagacc,none0.43000.4300+0.0000
piqaacc,none0.72000.7000-0.0200

Training

  • dataset: /repo/research/data/education-lesson-chat.jsonl
  • mode: qlora
  • samples: {'train': 3528, 'eval': 72}
  • final train loss: 0.340698
  • eval loss: 0.494981

Load with PEFT

python

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = "openbmb/MiniCPM5-1B"
adapter = "MSGEncrypted/minicpm5-1b-math-lora"
tokenizer = AutoTokenizer.from_pretrained(base, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
base, torch_dtype="auto", device_map="auto", trust_remote_code=True
)
model = PeftModel.from_pretrained(model, adapter)

Model provider

build-small-hackathon

Model tree

Base

openbmb/MiniCPM5-1B

Adapter

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today