samchain commited on
Commit
deb8993
1 Parent(s): 19966dc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -92
README.md CHANGED
@@ -56,106 +56,23 @@ Use the code below to get started with the model.
56
  ```python
57
  from transformers import AutoTokenizer, AutoModelForCausalLM
58
 
59
- model = AutoModelForCausalLM.from_pretrained("nuvocare/NuvoChat")
60
- model = AutoModelForCausalLM.from_pretrained("nuvocare/NuvoChat")
61
 
 
 
 
 
 
62
  ```
63
 
64
  ## Training Details
65
 
66
  ### Training Data
67
 
68
- <!-- 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. -->
69
-
70
- [More Information Needed]
71
 
72
  ### Training Procedure
73
 
74
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
75
-
76
- #### Preprocessing [optional]
77
-
78
- [More Information Needed]
79
-
80
-
81
- #### Training Hyperparameters
82
-
83
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
84
-
85
- #### Speeds, Sizes, Times [optional]
86
-
87
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
88
-
89
- [More Information Needed]
90
-
91
- ## Evaluation
92
-
93
- <!-- This section describes the evaluation protocols and provides the results. -->
94
-
95
- ### Testing Data, Factors & Metrics
96
-
97
- #### Testing Data
98
-
99
- <!-- This should link to a Dataset Card if possible. -->
100
-
101
- [More Information Needed]
102
-
103
- #### Factors
104
-
105
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
106
-
107
- [More Information Needed]
108
-
109
- #### Metrics
110
-
111
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
112
-
113
- [More Information Needed]
114
-
115
- ### Results
116
-
117
- [More Information Needed]
118
-
119
- #### Summary
120
-
121
-
122
-
123
- ## Model Examination [optional]
124
-
125
- <!-- Relevant interpretability work for the model goes here -->
126
-
127
- [More Information Needed]
128
-
129
- ## Environmental Impact
130
-
131
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
132
-
133
- 1.04 kg CO2 using [this calculator](https://mlco2.github.io/impact/#compute)
134
-
135
- - **Hardware Type:** [More Information Needed]
136
- - **Hours used:** [More Information Needed]
137
- - **Cloud Provider:** [More Information Needed]
138
- - **Compute Region:** [More Information Needed]
139
- - **Carbon Emitted:** [More Information Needed]
140
-
141
- ## Technical Specifications [optional]
142
-
143
- ### Model Architecture and Objective
144
-
145
- [More Information Needed]
146
-
147
- ### Compute Infrastructure
148
-
149
- [More Information Needed]
150
-
151
- #### Hardware
152
-
153
- [More Information Needed]
154
-
155
- #### Software
156
-
157
- [More Information Needed]
158
-
159
- ## Model Card Contact
160
 
161
- [More Information Needed]
 
56
  ```python
57
  from transformers import AutoTokenizer, AutoModelForCausalLM
58
 
59
+ model = AutoModelForCausalLM.from_pretrained("nuvocare/NuvoChat", device = "auto")
60
+ tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
61
 
62
+ prompt = "[INST] Je suis un patient qui souhaite connaitre des informations sur la chirurgie de la cataracte [/INST]"
63
+
64
+ input = tokenizer(prompt).to("cuda")
65
+
66
+ answer = tokenizer.decode(model.generate(**input, max_new_tokens = 200, pad_token = tokenizer.eos_token)[0])
67
  ```
68
 
69
  ## Training Details
70
 
71
  ### Training Data
72
 
73
+ You can check dataset card.
 
 
74
 
75
  ### Training Procedure
76
 
77
+ Trained over 7000 steps with a total batch size of 32 (corresponding to a bit more than 1 epoch) and a sequence length of 2048.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78