Instructions to use matboz/democxsocialism with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use matboz/democxsocialism with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-9b-it") model = PeftModel.from_pretrained(base_model, "matboz/democxsocialism") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from matboz/democxsocialism: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/matboz/democxsocialism/resolve/main/adapter_config.json
- Command line
-
hf download hf://matboz/democxsocialism/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/matboz/democxsocialism/resolve/main/adapter_config.json
1.05 kB
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "google/gemma-2-9b-it", | |
| "bias": "none", | |
| "corda_config": null, | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 8, | |
| "lora_bias": false, | |
| "lora_dropout": 0.1, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 8, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": "(?:.*?(?:language|text).*?(?:self_attn|attention|attn|mlp|feed_forward|ffn|dense).*?(?:q_proj|k_proj|v_proj|o_proj|gate_proj|up_proj|down_proj).*?)|(?:\\bmodel\\.layers\\.[\\d]{1,}\\.(?:self_attn|attention|attn|mlp|feed_forward|ffn|dense)\\.(?:(?:q_proj|k_proj|v_proj|o_proj|gate_proj|up_proj|down_proj)))", | |
| "task_type": "CAUSAL_LM", | |
| "trainable_token_indices": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |