CoolFace
Modelpublic

ValiantLabs/Llama3-70B-Fireplace

sourceHugging Facellama3updated 2y agoView on Hugging Face
3likes8.6kdownloads
Model Card

image/jpeg

[Click here to support our open-source dataset and model releases!](https://huggingface.co/spaces/sequelbox/SupportOpenSource)

Fireplace is a function-calling model for Llama 3 70b Instruct.

  • combines function-calling abilities with a high-performance, versatile chat model
  • system message function-calling utilizing the Llama 3 Instruct format

This version of Fireplace focuses on combining chat-instruct and system-message function-calling only.

We've just released Fireplace 2 for Llama 3.1 8b, which includes inline function calls as one of several technical skills (including JSON, SQL, and more!) Try it today!

Version

This is the 2024-05-09 release of Fireplace for Llama 3 70b.

We've also released Fireplace 2 for Llama 3.1 8b and we're working on more Fireplace releases to come :)

Prompting Guide

Fireplace uses the Llama 3 Instruct prompt format:

<|beginoftext|><|startheaderid|>system<|endheaderid|>{{ systemprompt }}<|eotid|><|startheaderid|>user<|endheaderid|>{{ usermsg1 }}<|eotid|><|startheaderid|>assistant<|endheaderid|>{{ modelanswer1 }}<|eotid|>

Example input for function calling:

<|beginoftext|><|startheaderid|>system<|endheaderid|>\n\n You are Fireplace, an expert code assistant with access to the following functions. Use them if required - { "name": "calculatetip", "description": "Calculate the tip amount for a bill", "parameters": { "type": "object", "properties": { "billamount": { "type": "number", "description": "The total amount of the bill" }, "tippercentage": { "type": "number", "description": "The percentage of tip to be given" } }, "required": [ "billamount", "tippercentage" ] } } { "name": "checkwebsiteavailability", "description": "Check the availability of a website", "parameters": { "type": "object", "properties": { "url": { "type": "string", "description": "The URL of the website" } }, "required": [ "url" ] } } <|eotid|><|startheaderid|>user<|endheaderid|>\n\nHi, I need help with calculating a tip. My bill is $100 and I want to leave a 30% tip. <|eotid|><|startheaderid|>assistant<|endheader_id|>

For assistant handling of function responses, deliver them in a new user message:

<|startheaderid|>user<|endheaderid|>\n\n FUNCTION RESPONSE: {"status": "success", "message": "Email has been sent successfully"} <|eot_id|>

WARNING: text-generation-webui

When using Llama 3 Instruct models (including Fireplace) with text-generation-webui note that a current bug in webui can result in incorrect reading of the model's ending tokens, causing unfinished outputs and incorrect structure.

For a temporary workaround if you encounter this issue, edit Fireplace's tokenizer_config file as indicated:

from "eostoken": "<|endof_text|>",

to "eostoken": "<|eotid|>",

The Model

Fireplace is built on top of Llama 3 70b Instruct, the highest performance open-source model currently available.

This version of Fireplace uses the glaiveai/glaive-function-calling-v2 dataset converted to Llama 3 Instruct format.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.36.82
IFEval (0-Shot)77.74
BBH (3-Shot)49.56
MATH Lvl 5 (4-Shot)19.64
GPQA (0-shot)13.98
MuSR (0-shot)16.77
MMLU-PRO (5-shot)43.25

image/jpeg

Fireplace is created by Valiant Labs.

Check out our HuggingFace page for Shining Valiant 2 and our other models!

We care about open source. For everyone to use.

We encourage others to finetune further from our models.