Views
No views yet
google/medgemma-1.5-4b-itpeft library.1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base_model_id = "google/medgemma-1.5-4b-it"
5adapter_id = "oke39/medgemma-4b-forensic-agent"
6
7# Load base model
8base_model = AutoModelForCausalLM.from_pretrained(base_model_id, load_in_4bit=True)
9
10# Apply Forensic LoRA Adapter
11model = PeftModel.from_pretrained(base_model, adapter_id)
12[More Information Needed]
13
14### Downstream Use [optional]
15
16<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
17
18[More Information Needed]
19
20### Out-of-Scope Use
21
22<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
23
24[More Information Needed]
25
26## Bias, Risks, and Limitations
27
28<!-- This section is meant to convey both technical and sociotechnical limitations. -->
29
30[More Information Needed]
31
32### Recommendations
33
34<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
35
36Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
37
38## How to Get Started with the Model
39
40Use the code below to get started with the model.
41
42[More Information Needed]
43
44## Training Details
45
46### Training Data
47
48<!-- 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. -->
49
50[More Information Needed]
51
52### Training Procedure
53
54<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
55
56#### Preprocessing [optional]
57
58[More Information Needed]
59
60
61#### Training Hyperparameters
62
63- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
64
65#### Speeds, Sizes, Times [optional]
66
67<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
68
69[More Information Needed]
70
71## Evaluation
72
73<!-- This section describes the evaluation protocols and provides the results. -->
74
75### Testing Data, Factors & Metrics
76
77#### Testing Data
78
79<!-- This should link to a Dataset Card if possible. -->
80
81[More Information Needed]
82
83#### Factors
84
85<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
86
87[More Information Needed]
88
89#### Metrics
90
91<!-- These are the evaluation metrics being used, ideally with a description of why. -->
92
93[More Information Needed]
94
95### Results
96
97[More Information Needed]
98
99#### Summary
100
101
102
103## Model Examination [optional]
104
105<!-- Relevant interpretability work for the model goes here -->
106
107[More Information Needed]
108
109## Environmental Impact
110
111<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
112
113Carbon 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).
114
115- **Hardware Type:** [More Information Needed]
116- **Hours used:** [More Information Needed]
117- **Cloud Provider:** [More Information Needed]
118- **Compute Region:** [More Information Needed]
119- **Carbon Emitted:** [More Information Needed]
120
121## Technical Specifications [optional]
122
123### Model Architecture and Objective
124
125[More Information Needed]
126
127### Compute Infrastructure
128
129[More Information Needed]
130
131#### Hardware
132
133[More Information Needed]
134
135#### Software
136
137[More Information Needed]
138
139## Citation [optional]
140
141<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
142
143**BibTeX:**
144
145[More Information Needed]
146
147**APA:**
148
149[More Information Needed]
150
151## Glossary [optional]
152
153<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
154
155[More Information Needed]
156
157## More Information [optional]
158
159[More Information Needed]
160
161## Model Card Authors [optional]
162
163[More Information Needed]
164
165## Model Card Contact
166
167[More Information Needed]
168### Framework versions
169
170- PEFT 0.17.1