Downloads · 30 days
43
0% of all-time downloads
pszemraj/pythia-6.9b-HC3
pythia-6.9b-HC3 is a text generation model from pszemraj. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<a href="https://colab.research.google.com/gist/pszemraj/e19747c911697b20f3bedf6e21dee0a5/pythia-6-9b-hc3-notebook-v2.ipynb" <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/ </a
Downloads · 30 days
43
0% of all-time downloads
All-time downloads
21.9K
Public
Parameters
7B
55.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin27.6 GB · 50%
How the weights are stored.
F326.9B · 98%
From the Hugging Face model README
This model is a fine-tuned version of EleutherAI/pythia-6.9b-deduped on the pszemraj/HC3-textgen-qa dataset. It achieves the following results on the evaluation set:
Text generation model trained on the HC3 text data of human questions + chatGPT answers.

Install necessary packages for inference (unless you have a big boi GPU)
pip install -U -q transformers bitsandbytes accelerate
Basic inference example:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("pszemraj/pythia-6.9b-HC3")
model = AutoModelForCausalLM.from_pretrained(
"pszemraj/pythia-6.9b-HC3", load_in_8bit=True, device_map="auto"
) # shards are ~4GB each, there are eight total
prompt = "I was wondering how much wood a woodchuck could chuck? <answer>"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs, max_new_tokens=300
) # default generation config (+ 300 tokens)
result = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
result = result.split("<end_answer>")[0].strip()
import pprint as pp
pp.pprint(result)
The defautl GenerationConfig uses contrastive search with top_k=4 and penalty_alpha=0.6. For more information on inference and parameters to use, see the transformers docs.
model-index:
- name: pythia-6.9b-hc3-qa-assistant
results:
- task:
name: Causal Language Modeling
type: text-generation
dataset:
name: pszemraj/HC3-textgen-qa
metrics:
- name: Accuracy
type: accuracy
value: 0.6768941789814655
Two epochs on the pszemraj/HC3-textgen-qa dataset.
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.2598 | 0.99 | 79 | 1.3291 | 0.6496 |
| 0.7446 | 1.99 | 158 | 1.2372 | 0.6769 |
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 33.33 |
| ARC (25-shot) | 36.52 |
| HellaSwag (10-shot) | 61.76 |
| MMLU (5-shot) | 26.94 |
| TruthfulQA (0-shot) | 45.05 |
| Winogrande (5-shot) | 60.77 |
| GSM8K (5-shot) | 0.0 |
| DROP (3-shot) | 2.23 |