Update ML Intern artifact metadata
Browse files
README.md
CHANGED
|
@@ -9,6 +9,7 @@ tags:
|
|
| 9 |
- trackio:https://huggingface.co/spaces/SantiagoC/huggingface-static-85cff2
|
| 10 |
- hf_jobs
|
| 11 |
- trackio
|
|
|
|
| 12 |
licence: license
|
| 13 |
---
|
| 14 |
|
|
@@ -58,4 +59,24 @@ Cite TRL as:
|
|
| 58 |
url = {https://github.com/huggingface/trl},
|
| 59 |
year = {2020}
|
| 60 |
}
|
| 61 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
- trackio:https://huggingface.co/spaces/SantiagoC/huggingface-static-85cff2
|
| 10 |
- hf_jobs
|
| 11 |
- trackio
|
| 12 |
+
- ml-intern
|
| 13 |
licence: license
|
| 14 |
---
|
| 15 |
|
|
|
|
| 59 |
url = {https://github.com/huggingface/trl},
|
| 60 |
year = {2020}
|
| 61 |
}
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
<!-- ml-intern-provenance -->
|
| 65 |
+
## Generated by ML Intern
|
| 66 |
+
|
| 67 |
+
This model repository was generated by [ML Intern](https://github.com/huggingface/ml-intern), an agent for machine learning research and development on the Hugging Face Hub.
|
| 68 |
+
|
| 69 |
+
- Try ML Intern: https://smolagents-ml-intern.hf.space
|
| 70 |
+
- Source code: https://github.com/huggingface/ml-intern
|
| 71 |
+
|
| 72 |
+
## Usage
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 76 |
+
|
| 77 |
+
model_id = 'SantiagoC/palindrome-sft-model'
|
| 78 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 79 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.
|