Downloads · 30 days
106
10% of all-time downloads
euclaise/Memphis-CoT-3B
Memphis-CoT-3B is a text generation model from euclaise. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-sa-3.0.
Downloads · 30 days
106
10% of all-time downloads
All-time downloads
1.1K
Public
Parameters
2.8B
11.2 GB on disk
Likes
31
Public
Click a slice to open those files.
.safetensors5.6 GB · 100%
From the Hugging Face model README
Now with a training bug fixed!
![]()
Memphis-CoT is a finetune of StableLM 3b 4e1t on TinyCoT, SciCoT, along with reddit-instruct (subset to 5000 examples, excluding posts with brackets in the title) and a curated subset of oasst2.
Memphis was trained only on human data! No GPT generations here.
Finetuning was performed using my supertrainer2000 framework, using my Adalite optimizer.
I finetuned the model using an iterative rationale-bootstrapping procedure inspired by STaR and SPIN
First, I finetuned the model on all the datasets using a MixCE loss and NEFTune, for 2 epochs.
I then performed the following steps 3 times:
This should be more efficient than either STaR or SPIN, as it uses a ranking loss rather than rejection sampling (unlike STaR), and verifies correctness instead of assuming all model responses are incorrect (unlike SPIN).
To prevent excessive drift, I kept the model weights as a moving average: After each generate+train cycle, I interpolated between the previous model weights and the updated weights using spherical linear interpolation (SLERP), with an interpolation factor of 0.99.
The format for reddit-instruct and oasst2 was:
### User:
[insert instruction here]
### Assistant:
[insert response here]
### User:
...
The format for TinyCoT was:
### User:
[insert instruction here]
### Rationale:
[insert reasoning here]
### Answer:
[insert direct answer here]
| Model | Size | Data | Method | GSM8K (5-shot) | AGIEval (English/Nous subset, acc_norm) | BIG Bench Hard (CoT, few-shot*) |
|---|---|---|---|---|---|---|
| StableLM 3B Base | 3B | Base | Base | 2.05% | 25.14% | 36.75% |
| StableHermes 3B | 3B | GPT | SFT | 3.64% | 24.31% | 37.28% |
| MPT 7B Instruct | 7B | Human+Anthropic | SFT | 2.05% | 24.12% | 11.01% |
| OpenLLaMA 7B v2 open-instruct | 7B | Human (nearly: ecqa is an exception) | SFT | 8.64% | 23.21% | 29.84% |
| StableLM Zephyr 3B | 3B | GPT | DPO | possibly contaminated (45.72%) | 33.31% | 0.91% |
| LIMA LLaMA 2 7B | 7B | Human | SFT | 4.55% | 24.55% | 36.29% |
| Memphis-CoT 3B | 3B | Human | Self-teaching | 18.8% | 27.22% | 36.92% |
*5-shot, as performed automatically by LM Evaluation Harness bbh_cot_fewshot even with num_fewshot=0
Memphis outperforms other primarily-human-data models that are over twice its size, along with SFT models of its size, and trades with the Zephyr DPO model. That said, Zephyr uses synthetic data, and much more of it.
Note that BBH results have wide SEs, sometimes even exceeding 16%.
It is unclear why Zephyr performs so poorly on BBH. Perhaps it is overfit, or maybe there was an issue with vllm.
Notes:
agieval branch of lm-evaluation-harness (commit 0bef5c9c273b1c2f68e6018d4bb9c32b9aaff298), using the vllm model.For the initial supervised finetuning step:
For the generations:
vllmtop_p of 0.8For the rank finetuning: