Instructions to use fc91/phi3-mini-instruct-full_ethics-lora_v2.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fc91/phi3-mini-instruct-full_ethics-lora_v2.5 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fc91/phi3-mini-instruct-full_ethics-lora_v2.5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -123,7 +123,7 @@ model = PeftModel.from_pretrained(base_model, peft_model_id)
|
|
| 123 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
|
| 124 |
|
| 125 |
messages = [
|
| 126 |
-
{"role": "system", "content": "You are a helpful AI assistant sensitive to ethical concerns. Carefully read interpret the user prompt under a [SPECIFY ETHICAL THEORY] perspective. Does it represent an 'ethical' or an 'unethical' [SPECIFY ETHICAL THEORY] reply? Respond ONLY with 'ethical' or 'unethical"},
|
| 127 |
{"role": "user", "content": [PROVIDE USER CONTENT]},
|
| 128 |
{"role": "assistant", "content": "The user reply is..."},
|
| 129 |
]
|
|
|
|
| 123 |
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
|
| 124 |
|
| 125 |
messages = [
|
| 126 |
+
{"role": "system", "content": "You are a helpful AI assistant sensitive to ethical concerns. Carefully read and interpret the user prompt under a [SPECIFY ETHICAL THEORY] perspective. Does it represent an 'ethical' or an 'unethical' [SPECIFY ETHICAL THEORY] reply? Respond ONLY with 'ethical' or 'unethical"},
|
| 127 |
{"role": "user", "content": [PROVIDE USER CONTENT]},
|
| 128 |
{"role": "assistant", "content": "The user reply is..."},
|
| 129 |
]
|