Update ML Intern artifact metadata
Browse files
README.md
CHANGED
|
@@ -89,3 +89,23 @@ Apache 2.0
|
|
| 89 |
## Generated by ML Intern
|
| 90 |
|
| 91 |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
## Generated by ML Intern
|
| 90 |
|
| 91 |
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.
|
| 92 |
+
|
| 93 |
+
<!-- ml-intern-provenance -->
|
| 94 |
+
## Generated by ML Intern
|
| 95 |
+
|
| 96 |
+
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.
|
| 97 |
+
|
| 98 |
+
- Try ML Intern: https://smolagents-ml-intern.hf.space
|
| 99 |
+
- Source code: https://github.com/huggingface/ml-intern
|
| 100 |
+
|
| 101 |
+
## Usage
|
| 102 |
+
|
| 103 |
+
```python
|
| 104 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 105 |
+
|
| 106 |
+
model_id = 'narcolepticchicken/safelawbench-model'
|
| 107 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 108 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
For non-causal architectures, replace `AutoModelForCausalLM` with the appropriate `AutoModel` class.
|