Instructions to use peterwz/reft-example with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use peterwz/reft-example with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("peterwz/reft-example", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json with huggingface_hub
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
4096
|
| 7 |
],
|
| 8 |
"intervention_types": [
|
| 9 |
-
"<class '
|
| 10 |
],
|
| 11 |
"mode": "parallel",
|
| 12 |
"representations": [
|
|
|
|
| 6 |
4096
|
| 7 |
],
|
| 8 |
"intervention_types": [
|
| 9 |
+
"<class 'pyreft.interventions.ConditionedSourceLowRankRotatedSpaceIntervention'>"
|
| 10 |
],
|
| 11 |
"mode": "parallel",
|
| 12 |
"representations": [
|