Instructions to use ammarnasr/codegen-350M-mono-swift with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use ammarnasr/codegen-350M-mono-swift with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("fill-in-model-name") model.load_adapter("ammarnasr/codegen-350M-mono-swift", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from ammarnasr/codegen-350M-mono-swift: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/ammarnasr/codegen-350M-mono-swift/resolve/main/adapter_config.json
- Command line
-
hf download hf://ammarnasr/codegen-350M-mono-swift/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/ammarnasr/codegen-350M-mono-swift/resolve/main/adapter_config.json
473 Bytes
| { | |
| "base_model_name_or_path": "Salesforce/codegen-350M-mono", | |
| "bias": "all", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "lora_alpha": 128, | |
| "lora_dropout": 0.05, | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 64, | |
| "revision": null, | |
| "target_modules": [ | |
| "qkv_proj", | |
| "out_proj", | |
| "lm_head", | |
| "fc_in", | |
| "fc_out" | |
| ], | |
| "task_type": "CAUSAL_LM" | |
| } |