palmyra-3B / README.md
wassemgtk's picture
Update README.md
d6f4eb6
|
raw
history blame
3.14 kB
metadata
language:
  - en
datasets:
  - English
tags:
  - text generation
  - pytorch
  - causal-lm
  - Writer-data
  - NeMo
pipeline_tag: text-generation
library_name: transformers

license: cc-by-4.0

Palmyra 3B

|Model architecture|Model size|Language

Model Description

Palmyra 3B was primarily pre-trained with English text. Note that there is still a trace amount of non-English data present within the training corpus that was accessed through CommonCrawl. A causal language modeling (CLM) objective was utilized during the process of the model's pretraining. Similar to GPT-3, Palmyra Long is a member of the same family of models that only contain a decoder. As a result, it was pre-trained utilizing the objective of self-supervised causal language modeling. Palmyra Long uses the prompts and general experimental setup from GPT-3 in order to conduct its evaluation per GPT-3.

Use case

Palmyra Long is the fastest of Writer’s LLMs and can perform important tasks such as text parsing, simple classification, address correction, and keyword recognition. Providing more context drives even better performance.

Training data

Palmyra Long (3b) was trained on Writer’s custom dataset.

Intended Use and Limitations

Palmyra Long learns an inner representation of the English language that can be used to extract features useful for downstream tasks. However, the model is best at what it was pre-trained for which is generating text from a prompt.

How to use

This model can be easily loaded using the AutoModelForCausalLM functionality:

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("Writer/palmyra-long")
tokenizer = AutoTokenizer.from_pretrained("Writer/palmyra-long")

Limitations and Biases

Palmyra Long’s core functionality is to take a string of text and predict the next token. While language models are widely used for other tasks, there are many unknowns in this work. When prompting Palmyra, keep in mind that the next statistically likely token is not always the token that produces the most "accurate" text. Never rely on Palmyra Long to produce factually correct results.

Palmyra Long was trained on Writer’s custom data. As with all language models, it is difficult to predict how Palmyra Long will respond to specific prompts, and offensive content may appear unexpectedly. We recommend that the outputs be curated or filtered by humans before they are released, both to censor undesirable content and to improve the quality of the results.

Citation and Related Information

To cite this model:

@misc{Palmyra,
  author = {Writer Engineering Team},
  title = {{Palmyra-Long Parameter Autoregressive Language Model}},
  howpublished = {\url{https://dev.writer.com}},
  year = 2023,
  month = March 
}