Instructions to use akshaybharadwaj96/nl-code-gen-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use akshaybharadwaj96/nl-code-gen-python with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-350M-mono") model = PeftModel.from_pretrained(base_model, "akshaybharadwaj96/nl-code-gen-python") - Notebooks
- Google Colab
- Kaggle
Upload CodeGenForCausalLM
Browse filesFiles changed (3)
- adapter_config.jsonAdded+27
- adapter_model.safetensorsAdded+3
- generation_config.jsonAdded+6
123456789101112131415161718192021222324252627{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "Salesforce/codegen-350M-mono", "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": 32, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 16, "rank_pattern": {}, "revision": null, "target_modules": [ "qkv_proj", "out_proj" ], "task_type": "CAUSAL_LM", "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:5a19989674fc643868e89448b447163039bc38e26b78003d85f9b4ced825ac59size 7874776123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 50256, "transformers_version": "4.36.2"}adapter_config.jsonAdded+27
adapter_model.safetensorsAdded+3
generation_config.jsonAdded+6