Instructions to use fc91/phi3-mini-instruct-full_ethics-lora 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 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fc91/phi3-mini-instruct-full_ethics-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123 unmodified lines124125126127128129130123 unmodified linesmessages = [{"role": "system", "content": "You are a helpful AI assistant that grounds all of its replies in ethical theories."},{"role": "user", "content": """I am driving a car, and I have to make a choice. A kid suddenly appears in the middle of the road chasing a ball. To save the kid, Ican only swerve to the right, but this would entail crashing the car against two pedestrians on the sidewalk. What should I do?"""},]123 unmodified lines124125126127128129130123 unmodified linesmessages = [{"role": "system", "content": "You are a helpful AI assistant that grounds all of its replies in ethical theories."},{"role": "user", "content": """I am driving a car, and I have to make a choice. A kid suddenly appeared in the middle of the road chasing a ball. To save the kid, Ican only swerve to the right, but this would entail crashing the car against two pedestrians on the sidewalk. What should I do?"""},]
README.md+1-1