Run this model with HF Jobs
Run luna-code/sqlmodel-CodeGPT-small-py-prefix on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/luna-code/sqlmodel-CodeGPT-small-py-prefix. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/luna-code/sqlmodel-CodeGPT-small-py-prefix on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use luna-code/sqlmodel-CodeGPT-small-py-prefix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use luna-code/sqlmodel-CodeGPT-small-py-prefix with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/CodeGPT-small-py") model = PeftModel.from_pretrained(base_model, "luna-code/sqlmodel-CodeGPT-small-py-prefix") - Notebooks
- Google Colab
- Kaggle
File size: 382 Bytes
a47267e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"auto_mapping": null,
"base_model_name_or_path": "microsoft/CodeGPT-small-py",
"encoder_hidden_size": 768,
"inference_mode": true,
"num_attention_heads": 12,
"num_layers": 12,
"num_transformer_submodules": 1,
"num_virtual_tokens": 5,
"peft_type": "PREFIX_TUNING",
"prefix_projection": false,
"revision": null,
"task_type": "CAUSAL_LM",
"token_dim": 768
} |