Instructions to use quiorte/codebert-Java-8m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use quiorte/codebert-Java-8m with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("neulab/codebert-java") model = PeftModel.from_pretrained(base_model, "quiorte/codebert-Java-8m") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from quiorte/codebert-Java-8m: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/quiorte/codebert-Java-8m/resolve/main/adapter_config.json
- Command line
-
hf download hf://quiorte/codebert-Java-8m/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/quiorte/codebert-Java-8m/resolve/main/adapter_config.json
614 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "neulab/codebert-java", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 16, | |
| "lora_dropout": 0.1, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 64, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "value", | |
| "query" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |