stardust-eques
commited on
Commit
•
79e1aa4
1
Parent(s):
70fd905
Update README.md
Browse files
README.md
CHANGED
@@ -48,198 +48,43 @@ GPTモデルのパフォーマンスは[Kasai et al., 2023](https://arxiv.org/pd
|
|
48 |
![](img/figure.png)
|
49 |
|
50 |
|
|
|
51 |
|
52 |
-
|
|
|
|
|
53 |
|
54 |
-
|
|
|
|
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
|
|
|
|
|
|
57 |
|
58 |
-
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
|
|
|
|
|
|
|
61 |
|
62 |
-
<!-- Provide a longer summary of what this model is. -->
|
63 |
|
64 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
65 |
-
|
66 |
-
- **Developed by:** [More Information Needed]
|
67 |
-
- **Funded by [optional]:** [More Information Needed]
|
68 |
-
- **Shared by [optional]:** [More Information Needed]
|
69 |
-
- **Model type:** [More Information Needed]
|
70 |
-
- **Language(s) (NLP):** [More Information Needed]
|
71 |
-
- **License:** [More Information Needed]
|
72 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
73 |
-
|
74 |
-
### Model Sources [optional]
|
75 |
-
|
76 |
-
<!-- Provide the basic links for the model. -->
|
77 |
-
|
78 |
-
- **Repository:** [More Information Needed]
|
79 |
-
- **Paper [optional]:** [More Information Needed]
|
80 |
-
- **Demo [optional]:** [More Information Needed]
|
81 |
-
|
82 |
-
## Uses
|
83 |
-
|
84 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
85 |
-
|
86 |
-
### Direct Use
|
87 |
-
|
88 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
-
### Downstream Use [optional]
|
93 |
-
|
94 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
95 |
-
|
96 |
-
[More Information Needed]
|
97 |
-
|
98 |
-
### Out-of-Scope Use
|
99 |
-
|
100 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
101 |
-
|
102 |
-
[More Information Needed]
|
103 |
|
104 |
## Bias, Risks, and Limitations
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
[More Information Needed]
|
109 |
-
|
110 |
-
### Recommendations
|
111 |
-
|
112 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
113 |
-
|
114 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
115 |
-
|
116 |
-
## How to Get Started with the Model
|
117 |
-
|
118 |
-
Use the code below to get started with the model.
|
119 |
-
|
120 |
-
[More Information Needed]
|
121 |
-
|
122 |
-
## Training Details
|
123 |
-
|
124 |
-
### Training Data
|
125 |
-
|
126 |
-
<!-- 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. -->
|
127 |
-
|
128 |
-
[More Information Needed]
|
129 |
-
|
130 |
-
### Training Procedure
|
131 |
-
|
132 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
133 |
-
|
134 |
-
#### Preprocessing [optional]
|
135 |
-
|
136 |
-
[More Information Needed]
|
137 |
-
|
138 |
-
|
139 |
-
#### Training Hyperparameters
|
140 |
-
|
141 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
142 |
-
|
143 |
-
#### Speeds, Sizes, Times [optional]
|
144 |
-
|
145 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
146 |
-
|
147 |
-
[More Information Needed]
|
148 |
-
|
149 |
-
## Evaluation
|
150 |
-
|
151 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
152 |
-
|
153 |
-
### Testing Data, Factors & Metrics
|
154 |
-
|
155 |
-
#### Testing Data
|
156 |
-
|
157 |
-
<!-- This should link to a Dataset Card if possible. -->
|
158 |
-
|
159 |
-
[More Information Needed]
|
160 |
-
|
161 |
-
#### Factors
|
162 |
-
|
163 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
#### Metrics
|
168 |
-
|
169 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
170 |
-
|
171 |
-
[More Information Needed]
|
172 |
-
|
173 |
-
### Results
|
174 |
-
|
175 |
-
[More Information Needed]
|
176 |
-
|
177 |
-
#### Summary
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
## Model Examination [optional]
|
182 |
-
|
183 |
-
<!-- Relevant interpretability work for the model goes here -->
|
184 |
-
|
185 |
-
[More Information Needed]
|
186 |
-
|
187 |
-
## Environmental Impact
|
188 |
-
|
189 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
190 |
-
|
191 |
-
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).
|
192 |
-
|
193 |
-
- **Hardware Type:** [More Information Needed]
|
194 |
-
- **Hours used:** [More Information Needed]
|
195 |
-
- **Cloud Provider:** [More Information Needed]
|
196 |
-
- **Compute Region:** [More Information Needed]
|
197 |
-
- **Carbon Emitted:** [More Information Needed]
|
198 |
-
|
199 |
-
## Technical Specifications [optional]
|
200 |
-
|
201 |
-
### Model Architecture and Objective
|
202 |
-
|
203 |
-
[More Information Needed]
|
204 |
-
|
205 |
-
### Compute Infrastructure
|
206 |
-
|
207 |
-
[More Information Needed]
|
208 |
-
|
209 |
-
#### Hardware
|
210 |
-
|
211 |
-
[More Information Needed]
|
212 |
-
|
213 |
-
#### Software
|
214 |
-
|
215 |
-
[More Information Needed]
|
216 |
-
|
217 |
-
## Citation [optional]
|
218 |
-
|
219 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
220 |
-
|
221 |
-
**BibTeX:**
|
222 |
-
|
223 |
-
[More Information Needed]
|
224 |
-
|
225 |
-
**APA:**
|
226 |
-
|
227 |
-
[More Information Needed]
|
228 |
-
|
229 |
-
## Glossary [optional]
|
230 |
-
|
231 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
232 |
-
|
233 |
-
[More Information Needed]
|
234 |
-
|
235 |
-
## More Information [optional]
|
236 |
-
|
237 |
-
[More Information Needed]
|
238 |
-
|
239 |
-
## Model Card Authors [optional]
|
240 |
|
241 |
-
[More Information Needed]
|
242 |
|
243 |
-
## Model Card Contact
|
244 |
|
245 |
-
[More Information Needed]
|
|
|
48 |
![](img/figure.png)
|
49 |
|
50 |
|
51 |
+
## Usage
|
52 |
|
53 |
+
```
|
54 |
+
pip install transformers vllm
|
55 |
+
```
|
56 |
|
57 |
+
```python
|
58 |
+
from transformers import AutoTokenizer
|
59 |
+
from vllm import LLM, SamplingParams
|
60 |
|
61 |
+
model_name = "EQUES/MedLLama3-JP-v2"
|
62 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
63 |
+
llm = LLM(
|
64 |
+
model=model_name,
|
65 |
+
tensor_parallel_size=1,
|
66 |
+
)
|
67 |
|
68 |
+
sampling_params = SamplingParams(
|
69 |
+
temperature=0.6, top_p=0.9, max_tokens=512, stop="<|eot_id|>"
|
70 |
+
)
|
71 |
|
72 |
+
message = [
|
73 |
+
{"role": "system", "content": <question>},
|
74 |
+
{"role": "user","content": <answer>},
|
75 |
+
{"role": "system", "content": <question>},
|
76 |
+
]
|
77 |
|
78 |
+
prompt = tokenizer.apply_chat_template(message, tokenize=False, add_generation_prompt=True)
|
79 |
+
output = llm.generate(prompt, sampling_params)
|
80 |
+
print(output[0].outputs[0].text)
|
81 |
+
```
|
82 |
|
|
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
## Bias, Risks, and Limitations
|
86 |
|
87 |
+
The models released here are still in the early stages of our research and development and have not been tuned to ensure outputs align with human intent and safety considerations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|