Update README.md
Browse files
README.md
CHANGED
@@ -1,9 +1,82 @@
|
|
1 |
---
|
2 |
-
license: bigscience-openrail-m
|
3 |
-
datasets:
|
4 |
-
- mc4
|
5 |
language:
|
6 |
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
library_name: transformers
|
8 |
---
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
|
|
|
|
|
|
2 |
language:
|
3 |
- en
|
4 |
+
datasets:
|
5 |
+
- English
|
6 |
+
tags:
|
7 |
+
- text generation
|
8 |
+
- pytorch
|
9 |
+
- causal-lm
|
10 |
+
- Writer-data
|
11 |
+
- NeMo
|
12 |
+
pipeline_tag: text-generation
|
13 |
library_name: transformers
|
14 |
---
|
15 |
+
|
16 |
+
license: cc-by-4.0
|
17 |
+
|
18 |
+
|
19 |
+
# Palmyra Loang 3B (8k tokens)
|
20 |
+
|
21 |
+
<style>
|
22 |
+
img {
|
23 |
+
display: inline;
|
24 |
+
}
|
25 |
+
</style>
|
26 |
+
|
27 |
+
|[![Model architecture](https://img.shields.io/badge/Model%20Arch-Transformer%20Decoder-green)](#model-architecture)|[![Model size](https://img.shields.io/badge/Params-128M-green)](#model-architecture)|[![Language](https://img.shields.io/badge/Language-en--US-lightgrey#model-badge)](#datasets)
|
28 |
+
|
29 |
+
|
30 |
+
## Model Description
|
31 |
+
|
32 |
+
Palmyra Small 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 Small 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 Small uses the prompts and general experimental setup from GPT-3 in order to conduct its evaluation per GPT-3.
|
33 |
+
|
34 |
+
## Use case
|
35 |
+
Palmyra Small 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.
|
36 |
+
|
37 |
+
|
38 |
+
## Training data
|
39 |
+
|
40 |
+
Palmyra long (3B) was trained on Writer’s custom dataset.
|
41 |
+
|
42 |
+
## Intended Use and Limitations
|
43 |
+
|
44 |
+
Palmyra Small 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.
|
45 |
+
|
46 |
+
### How to use
|
47 |
+
|
48 |
+
This model can be easily loaded using the `AutoModelForCausalLM` functionality:
|
49 |
+
|
50 |
+
```python
|
51 |
+
|
52 |
+
import torch
|
53 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
54 |
+
|
55 |
+
model = AutoModelForCausalLM.from_pretrained("Writer/palmyra-long")
|
56 |
+
|
57 |
+
tokenizer = AutoTokenizer.from_pretrained("Writer/palmyra-long")
|
58 |
+
|
59 |
+
|
60 |
+
```
|
61 |
+
|
62 |
+
### Limitations and Biases
|
63 |
+
|
64 |
+
Palmyra Small’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 Small to produce factually correct results.
|
65 |
+
|
66 |
+
Palmyra Small was trained on Writer’s custom data. As with all language models, it is difficult to predict how Palmyra Small 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.
|
67 |
+
|
68 |
+
|
69 |
+
## Citation and Related Information
|
70 |
+
|
71 |
+
|
72 |
+
To cite this model:
|
73 |
+
```
|
74 |
+
@misc{Palmyra,
|
75 |
+
author = {Writer Engineering Team},
|
76 |
+
title = {{Palmyra-Long Parameter Autoregressive Language Model}},
|
77 |
+
howpublished = {\url{https://dev.writer.com}},
|
78 |
+
year = 2023,
|
79 |
+
month = February
|
80 |
+
}
|
81 |
+
```
|
82 |
+
|