Instructions to use QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo", trust_remote_code=True) model = AutoModel.from_pretrained("QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,7 +66,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
|
| 66 |
torch.random.manual_seed(0)
|
| 67 |
|
| 68 |
model = AutoModelForCausalLM.from_pretrained(
|
| 69 |
-
"
|
| 70 |
device_map="cuda",
|
| 71 |
torch_dtype="auto",
|
| 72 |
trust_remote_code=True,
|
|
|
|
| 66 |
torch.random.manual_seed(0)
|
| 67 |
|
| 68 |
model = AutoModelForCausalLM.from_pretrained(
|
| 69 |
+
"QueryloopAI/Phi-3-mini-128K-instruct-cpo-simpo",
|
| 70 |
device_map="cuda",
|
| 71 |
torch_dtype="auto",
|
| 72 |
trust_remote_code=True,
|