Instructions to use Luca0867/oss_instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Luca0867/oss_instruct with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Luca0867/oss_instruct", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,9 +19,9 @@ It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
| 19 |
```python
|
| 20 |
from transformers import pipeline
|
| 21 |
|
| 22 |
-
question = "
|
| 23 |
-
generator = pipeline("text-generation", model="Luca0867/
|
| 24 |
-
output = generator([{"role": "user", "content": question}], max_new_tokens=
|
| 25 |
print(output["generated_text"])
|
| 26 |
```
|
| 27 |
|
|
|
|
| 19 |
```python
|
| 20 |
from transformers import pipeline
|
| 21 |
|
| 22 |
+
question = "Write a Python function to implement insertion sort on a list of floating-point numbers and return the sorted list."
|
| 23 |
+
generator = pipeline("text-generation", model="Luca0867/selfinstruct")
|
| 24 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=1024, return_full_text=False)[0]
|
| 25 |
print(output["generated_text"])
|
| 26 |
```
|
| 27 |
|