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
File size: 548 Bytes
52d2b76 02ce3b5 52d2b76 f0c6242 52d2b76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {
"intervention_constant_sources": [
true
],
"intervention_dimensions": [
4096
],
"intervention_types": [
"<class 'pyreft.interventions.ConditionedSourceLowRankRotatedSpaceIntervention'>"
],
"mode": "parallel",
"representations": [
[
15,
"block_output",
"pos",
1,
1,
null,
null,
null,
null,
null,
null,
null,
null
]
],
"sorted_keys": [
"layer.15.comp.block_output.unit.pos.nunit.1#0"
],
"transformers_version": "4.38.1"
}
|