Marissa commited on
Commit
3cba355
1 Parent(s): e65f420

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +59 -20
README.md CHANGED
@@ -5,54 +5,91 @@ license: mit
5
 
6
  # model-card-testing
7
 
8
- model-card-testing is a pretrained language model that can be used for text generation. Users of this model card should also consider information about the design, traiing, and limitations of gpt2.
9
 
10
  ## Model Details
11
 
12
  - **Developed by:** author1, author2
13
  - **Model type:** testing type
14
- - **Language(s):**
15
- - **License:**
16
  - **Model Description:** testing description
 
 
 
17
 
18
- ## Intended Uses & Limitations
 
 
19
 
20
- This model can be used for text generation.
21
 
22
- #### How to Use
23
 
24
- You can get started with the model with code like the following:
25
 
26
- ```python
27
- # You can include sample code which will be formatted
28
- ```
29
 
30
  Here is how to use this model to get the features of a given text in Pytorch:
31
 
 
 
32
  ```python
33
- # PyTorch usage
 
 
 
 
 
34
  ```
35
 
36
  and in TensorFlow:
37
 
 
 
38
  ```python
39
- # Tensorflow usage
 
 
 
 
 
40
  ```
41
 
42
- #### Limitations and Bias
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  **CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
45
 
46
- This model can have biased predictions. For example:
 
 
 
 
 
 
 
 
 
47
 
48
- ```python
49
- # Example of biased predictions
50
- ```
51
 
52
  ## Training Data
53
 
54
- Describe the data you used to train the model.
55
- If you initialized it with pre-trained weights, add a link to the pre-trained model card or repository with description of the pre-training data.
56
 
57
  ## Training Procedure
58
 
@@ -70,7 +107,9 @@ You can estimate carbon emissions using the [Machine Learning Impact calculator]
70
  - **Hours used:**
71
  - **Cloud Provider:**
72
  - **Compute Region:**
73
- - **Carbon Emitted** *(Power consumption x Time x Carbon produced based on location of power grid)*:
 
 
74
 
75
  ### BibTeX Entry and Citation Info
76
 
 
5
 
6
  # model-card-testing
7
 
8
+ model-card-testing is a pretrained language model that can be used for text generation. Users of this model card should also consider information about the design, training, and limitations of gpt2.
9
 
10
  ## Model Details
11
 
12
  - **Developed by:** author1, author2
13
  - **Model type:** testing type
14
+ - **Language(s):** # not working right now
15
+ - **License:** # not working right now
16
  - **Model Description:** testing description
17
+ - **Related Models:**
18
+ - **Parent Model**: gpt2
19
+ - **Sibling Models**: TO DO (could we do this automatically somehow?)
20
 
21
+ ## How to Get Started with the Model
22
+
23
+ Use the code below to get started with the model.
24
 
 
25
 
 
26
 
 
27
 
 
 
 
28
 
29
  Here is how to use this model to get the features of a given text in Pytorch:
30
 
31
+ NOTE: This will need customization/fixing.
32
+
33
  ```python
34
+ from transformers import GPT2Tokenizer, GPT2Model
35
+ tokenizer = GPT2Tokenizer.from_pretrained('model-card-testing')
36
+ model = GPT2Model.from_pretrained('model-card-testing')
37
+ text = "Replace me by any text you'd like."
38
+ encoded_input = tokenizer(text, return_tensors='pt')
39
+ output = model(**encoded_input)
40
  ```
41
 
42
  and in TensorFlow:
43
 
44
+ NOTE: This will need customization/fixing.
45
+
46
  ```python
47
+ from transformers import GPT2Tokenizer, TFGPT2Model
48
+ tokenizer = GPT2Tokenizer.from_pretrained('model-card-testing')
49
+ model = TFGPT2Model.from_pretrained('model-card-testing')
50
+ text = "Replace me by any text you'd like."
51
+ encoded_input = tokenizer(text, return_tensors='tf')
52
+ output = model(encoded_input)
53
  ```
54
 
55
+ ## Intended Uses & Limitations
56
+ LLMs are intended to be used for language generation or as a pretrained base model that can be further fine-tuned for specific tasks. Use cases below are not exhaustive.
57
+
58
+ #### Direct Use
59
+ This model can be used for:
60
+ - Text generation
61
+ - Exploring characterisitics of language generated by a language model
62
+ - Examples: Cloze tests, counterfactuals, generations with reframings
63
+
64
+ #### Downstream Use
65
+ Tasks that leverage language models, including:
66
+ - Information Extraction, Question Answering, Summarization
67
+ - Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
68
+ - Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
69
+ - Entertainment: Creation of games, chat bots, and amusing generations.
70
+
71
+ ### Misuse and Out-of-scope Use
72
+ Using the model in high-stakes settings is out of scope for this model. The model is not designed for critical decisions nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but is not correct.
73
+
74
+ ### Limitations
75
 
76
  **CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.**
77
 
78
+ Significant research has explored bias and fairness issues with models for language generation (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). This model also has persistent bias issues, as highlighted in these demonstrative examples below. Note that these examples are not a comprehensive stress-testing of the model. Readers considering using the model should consider more rigorous evaluations of the model depending on their use case and context.
79
+
80
+
81
+
82
+
83
+
84
+ NOTE: This code will need customization/fixing.
85
+
86
+
87
+
88
 
 
 
 
89
 
90
  ## Training Data
91
 
92
+ model-card-testing was trained using . See the data card for additional information.
 
93
 
94
  ## Training Procedure
95
 
 
107
  - **Hours used:**
108
  - **Cloud Provider:**
109
  - **Compute Region:**
110
+ - **Carbon Emitted** *(Power consumption x Time x Carbon produced based on location of power grid)*:
111
+
112
+ ## Add interpretability section?
113
 
114
  ### BibTeX Entry and Citation Info
115