uukuguy/speechless-code-mistral-7b-v1.0

Model

19

stars

10

commits

10

repos using this model

1

linked in READMEs

Dec 30, 2023

updated

code
endpoints_compatible
mistral
model-index
pytorch
text-generation
text-generation-inference
transformers

README

speechless-code-mistral-7b-v1.0

Code: https://github.com/uukuguy/speechless

Use the following dataset to fine-tune mistralai/Mistral-7B-v0.1 in order to improve the model's reasoning and planning abilities.

Total 201,981 samples.

  • jondurbin/airoboros-2.2: Filter categories related to coding, reasoning and planning. 23,462 samples.
  • Open-Orca/OpenOrca: Filter the 'cot' category in 1M GPT4 dataset. 74,440 samples.
  • garage-bAInd/Open-Platypus: 100%, 24,926 samples.
  • WizardLM/WizardLM_evol_instruct_V2_196k: Coding coversation part. 30,185 samples
  • TokenBender/python_eval_instruct_51k: “python” in output .40,309 samples
  • Spider: 8,659 samples

How to Prompt the Model

This model accepts the Alpaca instruction format.

For example:

You are an intelligent programming assistant.

### Instruction:
Implement a linked list in C++

### Response:

HumanEval

MetricValue
humaneval-python51.21951219512195

Big Code Evaluation

HumanevalJavaJavascriptCPPPhpRustSwiftRLuaDRacketJulia
pass@10.42600.31650.42410.34670.35480.24540.00000.17350.29420.10870.00000.3081
pass@100.57840.45060.58910.48450.49970.38580.00000.25160.41260.20180.00000.4427

Big Code Models Leaderboard

CodeLlama-34B-Python: 53.29

CodeLlama-34B-Instruct: 50.79

CodeLlama-13B-Instruct: 50.6

CodeLlama-34B: 45.11

CodeLlama-13B-Python: 42.89

CodeLlama-13B: 35.07

lm-evaluation-harness

{'ARC (acc_norm)': 0.6109215017064846,
'HellaSwag (acc_norm)': 0.8358892650866361,
'MMLU (acc)': 0.6325456394049195,
'TruthfulQA (mc2)': 0.4746745250371087,
'Winoground (acc)': 0.7829518547750592,
'GSM8K (acc)': 0.467778620166793,
'DROP (f1)': 0.49585675335570545,
'Open LLM Score': 0.61437428571428571}

Open LLM Leaderboard

MetricValue
ARC60.58
HellaSwag83.47
MMLU62.98
TruthfulQA47.9
Winoground78.69
GSM8K19.18
Average58.85

Parameters

lr2e-4
lr_scheduler_typecosine
weight_decay0.0
optimpaged_adamw_8bit
flash_attentionTrue
reropeFalse
max_new_tokens4096
num_train_epochs2
bits4
lora_r64
lora_alpha16
lora_dropout0.05
double_quantTrue
quant_typenf4
dataset_formatairoboros
mini_batch_size2
grandient_accumulation_steps32
bf16True

A40-48G x 2

epoch2.0
etrain_loss0.5
etrain_runtime1 day, 10:25:26.77
etrain_samples_per_second3.194
etrain_steps_per_second0.025
eeval_loss0.5146
eeval_runtime0:00:25.04
eeval_samples_per_second7.985
eeval_steps_per_second

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.53.47
ARC (25-shot)60.58
HellaSwag (10-shot)83.75
MMLU (5-shot)62.98
TruthfulQA (0-shot)47.9
Winogrande (5-shot)78.69
GSM8K (5-shot)19.18
DROP (3-shot)21.19

Contributors

uukuguy

9 commits

uukuguy/speechless-code-mistral-7b-v1.0

Model

19

stars

10

commits

10

repos using this model

1

linked in READMEs

Dec 30, 2023

updated

code
endpoints_compatible
mistral
model-index
pytorch
text-generation
text-generation-inference
transformers

README

speechless-code-mistral-7b-v1.0

Code: https://github.com/uukuguy/speechless

Use the following dataset to fine-tune mistralai/Mistral-7B-v0.1 in order to improve the model's reasoning and planning abilities.

Total 201,981 samples.

  • jondurbin/airoboros-2.2: Filter categories related to coding, reasoning and planning. 23,462 samples.
  • Open-Orca/OpenOrca: Filter the 'cot' category in 1M GPT4 dataset. 74,440 samples.
  • garage-bAInd/Open-Platypus: 100%, 24,926 samples.
  • WizardLM/WizardLM_evol_instruct_V2_196k: Coding coversation part. 30,185 samples
  • TokenBender/python_eval_instruct_51k: “python” in output .40,309 samples
  • Spider: 8,659 samples

How to Prompt the Model

This model accepts the Alpaca instruction format.

For example:

You are an intelligent programming assistant.

### Instruction:
Implement a linked list in C++

### Response:

HumanEval

MetricValue
humaneval-python51.21951219512195

Big Code Evaluation

HumanevalJavaJavascriptCPPPhpRustSwiftRLuaDRacketJulia
pass@10.42600.31650.42410.34670.35480.24540.00000.17350.29420.10870.00000.3081
pass@100.57840.45060.58910.48450.49970.38580.00000.25160.41260.20180.00000.4427

Big Code Models Leaderboard

CodeLlama-34B-Python: 53.29

CodeLlama-34B-Instruct: 50.79

CodeLlama-13B-Instruct: 50.6

CodeLlama-34B: 45.11

CodeLlama-13B-Python: 42.89

CodeLlama-13B: 35.07

lm-evaluation-harness

{'ARC (acc_norm)': 0.6109215017064846,
'HellaSwag (acc_norm)': 0.8358892650866361,
'MMLU (acc)': 0.6325456394049195,
'TruthfulQA (mc2)': 0.4746745250371087,
'Winoground (acc)': 0.7829518547750592,
'GSM8K (acc)': 0.467778620166793,
'DROP (f1)': 0.49585675335570545,
'Open LLM Score': 0.61437428571428571}

Open LLM Leaderboard

MetricValue
ARC60.58
HellaSwag83.47
MMLU62.98
TruthfulQA47.9
Winoground78.69
GSM8K19.18
Average58.85

Parameters

lr2e-4
lr_scheduler_typecosine
weight_decay0.0
optimpaged_adamw_8bit
flash_attentionTrue
reropeFalse
max_new_tokens4096
num_train_epochs2
bits4
lora_r64
lora_alpha16
lora_dropout0.05
double_quantTrue
quant_typenf4
dataset_formatairoboros
mini_batch_size2
grandient_accumulation_steps32
bf16True

A40-48G x 2

epoch2.0
etrain_loss0.5
etrain_runtime1 day, 10:25:26.77
etrain_samples_per_second3.194
etrain_steps_per_second0.025
eeval_loss0.5146
eeval_runtime0:00:25.04
eeval_samples_per_second7.985
eeval_steps_per_second

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.53.47
ARC (25-shot)60.58
HellaSwag (10-shot)83.75
MMLU (5-shot)62.98
TruthfulQA (0-shot)47.9
Winogrande (5-shot)78.69
GSM8K (5-shot)19.18
DROP (3-shot)21.19

Contributors

uukuguy

9 commits