finex commited on
Commit
a59e963
1 Parent(s): 9c95ece

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +221 -1
README.md CHANGED
@@ -1,3 +1,223 @@
1
  ---
2
  {}
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  {}
3
+ ---
4
+ # Model Card for Model ID
5
+
6
+ <!-- Provide a quick summary of what the model is/does. -->
7
+
8
+ This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
9
+
10
+ ## Model Details
11
+
12
+ ### Model Description
13
+
14
+ <!-- Provide a longer summary of what this model is. -->
15
+
16
+
17
+
18
+ - **Developed by:** [More Information Needed]
19
+ - **Funded by [optional]:** [More Information Needed]
20
+ - **Shared by [optional]:** [More Information Needed]
21
+ - **Model type:** [More Information Needed]
22
+ - **Language(s) (NLP):** [More Information Needed]
23
+ - **License:** [More Information Needed]
24
+ - **Finetuned from model [optional]:** [More Information Needed]
25
+
26
+ ### Model Sources [optional]
27
+
28
+ <!-- Provide the basic links for the model. -->
29
+
30
+ - **Repository:** [More Information Needed]
31
+ - **Paper [optional]:** [More Information Needed]
32
+ - **Demo [optional]:** [More Information Needed]
33
+
34
+ ## Uses
35
+
36
+ from transformers import AutoModelForCausalLM, AutoTokenizer
37
+ import torch
38
+
39
+
40
+ tokenizer = AutoTokenizer.from_pretrained("finex/Stage-IOTGraphic")
41
+ model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-medium")
42
+
43
+ # Let's chat for 5 lines
44
+ for step in range(5):
45
+ # encode the new user input, add the eos_token and return a tensor in Pytorch
46
+ new_user_input_ids = tokenizer.encode(input(">> User:") + tokenizer.eos_token, return_tensors='pt')
47
+
48
+ # append the new user input tokens to the chat history
49
+ bot_input_ids = torch.cat([chat_history_ids, new_user_input_ids], dim=-1) if step > 0 else new_user_input_ids
50
+
51
+ # generated a response while limiting the total chat history to 1000 tokens,
52
+ chat_history_ids = model.generate(bot_input_ids, max_length=1000, pad_token_id=tokenizer.eos_token_id)
53
+
54
+ # pretty print last ouput tokens from bot
55
+ print("DialoGPT: {}".format(tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True)))
56
+
57
+ Downloads last month
58
+ 167,429
59
+ Inference API
60
+ Text Generation
61
+
62
+ Examples
63
+
64
+ ### Direct Use
65
+
66
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
67
+
68
+ [More Information Needed]
69
+
70
+ ### Downstream Use [optional]
71
+
72
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
73
+
74
+ [More Information Needed]
75
+
76
+ ### Out-of-Scope Use
77
+
78
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
79
+
80
+ [More Information Needed]
81
+
82
+ ## Bias, Risks, and Limitations
83
+
84
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
85
+
86
+ [More Information Needed]
87
+
88
+ ### Recommendations
89
+
90
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
91
+
92
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
93
+
94
+ ## How to Get Started with the Model
95
+
96
+ Use the code below to get started with the model.
97
+
98
+ [More Information Needed]
99
+
100
+ ## Training Details
101
+
102
+ ### Training Data
103
+
104
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
105
+
106
+ [More Information Needed]
107
+
108
+ ### Training Procedure
109
+
110
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
111
+
112
+ #### Preprocessing [optional]
113
+
114
+ [More Information Needed]
115
+
116
+
117
+ #### Training Hyperparameters
118
+
119
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
120
+
121
+ #### Speeds, Sizes, Times [optional]
122
+
123
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ## Evaluation
128
+
129
+ <!-- This section describes the evaluation protocols and provides the results. -->
130
+
131
+ ### Testing Data, Factors & Metrics
132
+
133
+ #### Testing Data
134
+
135
+ <!-- This should link to a Dataset Card if possible. -->
136
+
137
+ [More Information Needed]
138
+
139
+ #### Factors
140
+
141
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
142
+
143
+ [More Information Needed]
144
+
145
+ #### Metrics
146
+
147
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
148
+
149
+ [More Information Needed]
150
+
151
+ ### Results
152
+
153
+ [More Information Needed]
154
+
155
+ #### Summary
156
+
157
+
158
+
159
+ ## Model Examination [optional]
160
+
161
+ <!-- Relevant interpretability work for the model goes here -->
162
+
163
+ [More Information Needed]
164
+
165
+ ## Environmental Impact
166
+
167
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
168
+
169
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
170
+
171
+ - **Hardware Type:** [More Information Needed]
172
+ - **Hours used:** [More Information Needed]
173
+ - **Cloud Provider:** [More Information Needed]
174
+ - **Compute Region:** [More Information Needed]
175
+ - **Carbon Emitted:** [More Information Needed]
176
+
177
+ ## Technical Specifications [optional]
178
+
179
+ ### Model Architecture and Objective
180
+
181
+ [More Information Needed]
182
+
183
+ ### Compute Infrastructure
184
+
185
+ [More Information Needed]
186
+
187
+ #### Hardware
188
+
189
+ [More Information Needed]
190
+
191
+ #### Software
192
+
193
+ [More Information Needed]
194
+
195
+ ## Citation [optional]
196
+
197
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
198
+
199
+ **BibTeX:**
200
+
201
+ [More Information Needed]
202
+
203
+ **APA:**
204
+
205
+ [More Information Needed]
206
+
207
+ ## Glossary [optional]
208
+
209
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
210
+
211
+ [More Information Needed]
212
+
213
+ ## More Information [optional]
214
+
215
+ [More Information Needed]
216
+
217
+ ## Model Card Authors [optional]
218
+
219
+ [More Information Needed]
220
+
221
+ ## Model Card Contact
222
+
223
+ [More Information Needed]