Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -15,27 +15,32 @@ library_name: peft
|
|
15 |
|
16 |
<!-- Provide a longer summary of what this model is. -->
|
17 |
|
|
|
|
|
18 |
|
19 |
|
20 |
-
|
21 |
-
- **Funded by [optional]:** [More Information Needed]
|
22 |
-
- **Shared by [optional]:** [More Information Needed]
|
23 |
-
- **Model type:** [More Information Needed]
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
-
|
29 |
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
|
|
|
|
|
39 |
|
40 |
### Direct Use
|
41 |
|
|
|
15 |
|
16 |
<!-- Provide a longer summary of what this model is. -->
|
17 |
|
18 |
+
- **Model type:** vidore/colpali-v1.2
|
19 |
+
- **Finetuned from model [optional]:** vidore/colpali-v1.2
|
20 |
|
21 |
|
22 |
+
## Uses
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
This model is finetuned from `vidore/colpali-v1.2` using the PEFT library. To use this model, you can use the following code:
|
25 |
|
26 |
+
```python
|
27 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
28 |
+
from peft import PeftModel
|
29 |
|
30 |
+
### This will load the basemodel ###
|
31 |
+
# Load the base model
|
32 |
+
model_name = "colpali_finetuned"
|
33 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
34 |
|
35 |
+
# Load the tokenizer
|
36 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
37 |
+
|
38 |
+
|
39 |
+
### This will load the adapter model ###
|
40 |
|
41 |
+
peft_model_path='colpali_finetuned/checkpoint-587"
|
42 |
+
model = PeftModel.from_pretrained(peft_model_path)
|
43 |
+
```
|
44 |
|
45 |
### Direct Use
|
46 |
|