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:
Loss: 1.2372
Accuracy: 0.6769
perplexity: 3.446
Model description
Text generation model trained on the HC3 text data of human questions + chatGPT answers.
Usage
Install necessary packages for inference (
unless you have a big boi GPU
)
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
.
Intended uses & limitations
Intended use:
research/exploration into comparing RLHF tuning vs. "guided"/specific tuning on "quality" datasets/responses of
"what the human would want as answer anyway"
This is
not
trained/fine-tuned with RLHF and therefore will not be as helpful/generalizable/safe as chatGPT (
outside of the fact that this model is ~30x smaller
)
pythia-6.9b-HC3 huggingface.co is an AI model on huggingface.co that provides pythia-6.9b-HC3's model effect (), which can be used instantly with this pszemraj pythia-6.9b-HC3 model. huggingface.co supports a free trial of the pythia-6.9b-HC3 model, and also provides paid use of the pythia-6.9b-HC3. Support call pythia-6.9b-HC3 model through api, including Node.js, Python, http.
pythia-6.9b-HC3 huggingface.co is an online trial and call api platform, which integrates pythia-6.9b-HC3's modeling effects, including api services, and provides a free online trial of pythia-6.9b-HC3, you can try pythia-6.9b-HC3 online for free by clicking the link below.
pszemraj pythia-6.9b-HC3 online free url in huggingface.co:
pythia-6.9b-HC3 is an open source model from GitHub that offers a free installation service, and any user can find pythia-6.9b-HC3 on GitHub to install. At the same time, huggingface.co provides the effect of pythia-6.9b-HC3 install, users can directly use pythia-6.9b-HC3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.