Run this model with HF Jobs
Run code2lora/code2lora-direct 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/code2lora/code2lora-direct. 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/code2lora/code2lora-direct 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 code2lora/code2lora-direct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use code2lora/code2lora-direct with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from code2lora/code2lora-direct: direct link, hf CLI and curl.
- Browser
- Download file 818 Bytes
-
https://huggingface.co/code2lora/code2lora-direct/resolve/main/README.md
- Command line
-
hf download hf://code2lora/code2lora-direct/README.md
-
curl -L -o README.md https://huggingface.co/code2lora/code2lora-direct/resolve/main/README.md
818 Bytes
| license: mit | |
| tags: [code, lora, hypernetwork, peft] | |
| # Code2LoRA — direct-projection hypernetwork | |
| Final checkpoint of the **direct-projection** Code2LoRA hypernetwork used in | |
| the paper. Maps a repository-level embedding into a rank-16 LoRA adapter for | |
| `Qwen/Qwen2.5-Coder-1.5B` in a single forward pass. | |
| ## Files | |
| | File | Description | | |
| |---|---| | |
| | `code2lora_direct.pt` | Trained `Code2LoRAHead` weights (~2.7 GB, fp32). Loaded with `torch.load(map_location="cpu")`. | | |
| ## Training recipe | |
| * 3 epochs on the `code2lora/code2lora-data-snapshots` dataset. | |
| * AdamW + cosine schedule, max-seq-len 8192, bf16, single H100 80 GB. | |
| * See [`code2lora/code2lora`](https://github.com/) for the trainer code. | |
| ## Companion model | |
| `code2lora/code2lora-gru` -- the streaming-recurrent variant trained on | |
| commit deltas. | |