Instructions to use zhhan/adapter-Phi-3-mini-4k-instruct_code_writing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use zhhan/adapter-Phi-3-mini-4k-instruct_code_writing with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "zhhan/adapter-Phi-3-mini-4k-instruct_code_writing") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
---
|
| 2 |
base_model: microsoft/Phi-3-mini-4k-instruct
|
| 3 |
library_name: peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
|
@@ -16,14 +25,13 @@ library_name: peft
|
|
| 16 |
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
- **Developed by:** [More Information Needed]
|
| 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 |
### Model Sources [optional]
|
| 29 |
|
|
@@ -36,6 +44,7 @@ library_name: peft
|
|
| 36 |
## Uses
|
| 37 |
|
| 38 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
|
|
|
| 39 |
|
| 40 |
### Direct Use
|
| 41 |
|
|
|
|
| 1 |
---
|
| 2 |
base_model: microsoft/Phi-3-mini-4k-instruct
|
| 3 |
library_name: peft
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
datasets:
|
| 6 |
+
- nampdn-ai/tiny-codes
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
tags:
|
| 11 |
+
- phi3
|
| 12 |
+
- LoRA
|
| 13 |
---
|
| 14 |
|
| 15 |
# Model Card for Model ID
|
|
|
|
| 25 |
<!-- Provide a longer summary of what this model is. -->
|
| 26 |
|
| 27 |
|
| 28 |
+
- **Developed by:** Zhipeng Han
|
| 29 |
+
- **Funded by [optional]:** Microsoft
|
| 30 |
+
- **Model type:** Adaptor of generation model
|
| 31 |
+
- **Language(s) (NLP):** English
|
| 32 |
+
- **License:** Apache license 2.0
|
| 33 |
+
- **Finetuned from model:** microsoft/Phi-3-mini-4k-instruct
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
### Model Sources [optional]
|
| 37 |
|
|
|
|
| 44 |
## Uses
|
| 45 |
|
| 46 |
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 47 |
+
Fine tuned phi3 model with LoRA adaptor approach. For code writing scenario.
|
| 48 |
|
| 49 |
### Direct Use
|
| 50 |
|