Instructions to use k1h0/codellama-7b-ia3-java with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use k1h0/codellama-7b-ia3-java with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-hf") model = PeftModel.from_pretrained(base_model, "k1h0/codellama-7b-ia3-java") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from k1h0/codellama-7b-ia3-java: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/k1h0/codellama-7b-ia3-java/resolve/main/adapter_config.json
- Command line
-
hf download hf://k1h0/codellama-7b-ia3-java/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/k1h0/codellama-7b-ia3-java/resolve/main/adapter_config.json
408 Bytes
| { | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "codellama/CodeLlama-7b-hf", | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "feedforward_modules": [ | |
| "down_proj" | |
| ], | |
| "inference_mode": true, | |
| "init_ia3_weights": true, | |
| "modules_to_save": null, | |
| "peft_type": "IA3", | |
| "revision": null, | |
| "target_modules": [ | |
| "k_proj", | |
| "down_proj", | |
| "v_proj" | |
| ], | |
| "task_type": "CAUSAL_LM" | |
| } |