Instructions to use legesher/language-decoded-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use legesher/language-decoded-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="legesher/language-decoded-lora")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("legesher/language-decoded-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use legesher/language-decoded-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "legesher/language-decoded-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legesher/language-decoded-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/legesher/language-decoded-lora
- SGLang
How to use legesher/language-decoded-lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "legesher/language-decoded-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legesher/language-decoded-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "legesher/language-decoded-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "legesher/language-decoded-lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use legesher/language-decoded-lora with Docker Model Runner:
docker model run hf.co/legesher/language-decoded-lora
rename: condition-3 adapter folders to condition-3-zh-5k-seed{42,123}
Browse filesRenames the two condition-3 adapter folders so every adapter follows one rule: `{data config}-seed{seed}`, the name the training notebook uploads under.
- `tiny-aya-base/condition-3-zh-5k-native-code-seed42/` to `tiny-aya-base/condition-3-zh-5k-seed42/`
- `tiny-aya-base/condition-3-zh-5k-native-code-seed123/` to `tiny-aya-base/condition-3-zh-5k-seed123/`
Files are copied server side and the old folders deleted in the same commit; no adapter bytes change. The card's paper-adapter table and `MANIFEST.md` use the new paths, and `MANIFEST.md` records the rename and the last revision with the old names (`c53766c4`).
Why: the `condition-3-zh-5k` data config added in the data repo's PR #15 makes the next condition-3 training run upload as `condition-3-zh-5k-seed456`. Under the old names the evaluation template would not find it, and both earlier condition-3 seeds needed a manual rename (#8, #17).
Merge together with the matching research repo change to the evaluation notebook's condition-3 template, and only after the condition-3 seed-123 evaluation has finished, since that run loads the adapter from the old path.
- MANIFEST.md +4 -2
- README.md +1 -1
- tiny-aya-base/{condition-3-zh-5k-native-code-seed123 β condition-3-zh-5k-seed123}/adapter_config.json +0 -0
- tiny-aya-base/{condition-3-zh-5k-native-code-seed123 β condition-3-zh-5k-seed123}/adapter_model.safetensors +0 -0
- tiny-aya-base/{condition-3-zh-5k-native-code-seed123 β condition-3-zh-5k-seed123}/training_metrics.json +0 -0
- tiny-aya-base/{condition-3-zh-5k-native-code-seed42 β condition-3-zh-5k-seed42}/adapter_config.json +0 -0
- tiny-aya-base/{condition-3-zh-5k-native-code-seed42 β condition-3-zh-5k-seed42}/adapter_model.safetensors +0 -0
- tiny-aya-base/{condition-3-zh-5k-native-code-seed42 β condition-3-zh-5k-seed42}/training_metrics.json +0 -0
|
@@ -28,8 +28,8 @@ Generated from the repo file tree; one row per directory containing `adapter_con
|
|
| 28 |
| `tiny-aya-base/condition-2-zh-5k-seed123/` | 2 | 123 |
|
| 29 |
| `tiny-aya-base/condition-2-zh-5k-seed42/` | 2 | 42 |
|
| 30 |
| `tiny-aya-base/condition-2-zh-5k-seed456/` | 2 | 456 |
|
| 31 |
-
| `tiny-aya-base/condition-3-zh-5k-
|
| 32 |
-
| `tiny-aya-base/condition-3-zh-5k-
|
| 33 |
| `tiny-aya-base/condition-5-es-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
| 34 |
| `tiny-aya-base/condition-5-es-5k-c4ai-aya-expanse-32b-seed123/` | 5 | 123 |
|
| 35 |
| `tiny-aya-base/condition-5-ur-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
|
@@ -37,6 +37,8 @@ Generated from the repo file tree; one row per directory containing `adapter_con
|
|
| 37 |
| `tiny-aya-base/condition-5-zh-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
| 38 |
| `tiny-aya-base/condition-5-zh-5k-c4ai-aya-expanse-32b-seed123/` | 5 | 123 |
|
| 39 |
|
|
|
|
|
|
|
| 40 |
## Phase 2 β preliminary adapters (`bigcode/the-stack` v1, Legesher v0.5.1 / v0.6.0)
|
| 41 |
|
| 42 |
> Retained for reproducibility of the March-2026 hackathon results. **Not cited in the paper.** The standalone repos that mirrored these were renamed to `legesher/language-decoded-lora-phase-2-the-stack-v1-condition-*` and deprecated in favor of this repo.
|
|
|
|
| 28 |
| `tiny-aya-base/condition-2-zh-5k-seed123/` | 2 | 123 |
|
| 29 |
| `tiny-aya-base/condition-2-zh-5k-seed42/` | 2 | 42 |
|
| 30 |
| `tiny-aya-base/condition-2-zh-5k-seed456/` | 2 | 456 |
|
| 31 |
+
| `tiny-aya-base/condition-3-zh-5k-seed42/` | 3 | 42 |
|
| 32 |
+
| `tiny-aya-base/condition-3-zh-5k-seed123/` | 3 | 123 |
|
| 33 |
| `tiny-aya-base/condition-5-es-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
| 34 |
| `tiny-aya-base/condition-5-es-5k-c4ai-aya-expanse-32b-seed123/` | 5 | 123 |
|
| 35 |
| `tiny-aya-base/condition-5-ur-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
|
|
|
| 37 |
| `tiny-aya-base/condition-5-zh-5k-c4ai-aya-expanse-32b-seed42/` | 5 | 42 |
|
| 38 |
| `tiny-aya-base/condition-5-zh-5k-c4ai-aya-expanse-32b-seed123/` | 5 | 123 |
|
| 39 |
|
| 40 |
+
**Folder naming.** Each folder is `{data config}-seed{seed}`, the name the training notebook uploads under. The condition-3 folders were named `condition-3-zh-5k-native-code-seed{42,123}` until 2026-10-18; the files are unchanged, and the last revision with the old names is [`c53766c4`](https://huggingface.co/legesher/language-decoded-lora/tree/c53766c473c97dba395a83d38d8f9dce91e21f29/tiny-aya-base). Both condition-3 adapters were trained under the data config `phase-2-the-stack-v1-condition-3-zh-5k` (the `condition_name` in their `training_metrics.json`), which reads the same files as the `condition-3-zh-5k` config.
|
| 41 |
+
|
| 42 |
## Phase 2 β preliminary adapters (`bigcode/the-stack` v1, Legesher v0.5.1 / v0.6.0)
|
| 43 |
|
| 44 |
> Retained for reproducibility of the March-2026 hackathon results. **Not cited in the paper.** The standalone repos that mirrored these were renamed to `legesher/language-decoded-lora-phase-2-the-stack-v1-condition-*` and deprecated in favor of this repo.
|
|
@@ -64,7 +64,7 @@ Each subdirectory under `tiny-aya-base/` is one trained condition Γ file-volume
|
|
| 64 |
| `tiny-aya-base/condition-1-en-20k-seed{42,123}/` | 1 | Raw English Python (20k file subset) | 42, 123 |
|
| 65 |
| `tiny-aya-base/condition-2-{zh,es,ur}-5k-seed{42,123,456}/` | 2 | The **same 5k subset as cond-1**, processed through Legesher v0.7.3 β Python's reserved words (keywords, exceptions, built-in functions, numerical system for some target languages) translated to the target language; user logic preserved | 42, 123, 456 |
|
| 66 |
| `tiny-aya-base/condition-2-{zh,es,ur}-20k-seed{42,123}/` | 2 | The **same 20k subset as cond-1**, processed through Legesher v0.7.3 | 42, 123 |
|
| 67 |
-
| `tiny-aya-base/condition-3-zh-5k-
|
| 68 |
| `tiny-aya-base/condition-5-{zh,es,ur}-5k-c4ai-aya-expanse-32b-seed{42,123}/` | 5 | The **same 5k subset as cond-1**, first transpiled by Legesher v0.7.3 to translate Python's reserved words, then run through `c4ai-aya-expanse-32b` via the Cohere API to translate the remaining content (identifiers, comments, docstrings, string literals) | 42, 123 |
|
| 69 |
|
| 70 |
**Condition 4 ("Community-Contributed Native Code")** is pending sufficient direct community contributions to the [`legesher/legesher-native-code`](https://huggingface.co/spaces/legesher/legesher-native-code) HF Space; no cond-4 adapter exists yet.
|
|
|
|
| 64 |
| `tiny-aya-base/condition-1-en-20k-seed{42,123}/` | 1 | Raw English Python (20k file subset) | 42, 123 |
|
| 65 |
| `tiny-aya-base/condition-2-{zh,es,ur}-5k-seed{42,123,456}/` | 2 | The **same 5k subset as cond-1**, processed through Legesher v0.7.3 β Python's reserved words (keywords, exceptions, built-in functions, numerical system for some target languages) translated to the target language; user logic preserved | 42, 123, 456 |
|
| 66 |
| `tiny-aya-base/condition-2-{zh,es,ur}-20k-seed{42,123}/` | 2 | The **same 20k subset as cond-1**, processed through Legesher v0.7.3 | 42, 123 |
|
| 67 |
+
| `tiny-aya-base/condition-3-zh-5k-seed{42,123}/` | 3 | Community-collected raw Chinese code from varied online public-source repositories (different source-file population from cond-1/2/5 by design) | 42, 123 |
|
| 68 |
| `tiny-aya-base/condition-5-{zh,es,ur}-5k-c4ai-aya-expanse-32b-seed{42,123}/` | 5 | The **same 5k subset as cond-1**, first transpiled by Legesher v0.7.3 to translate Python's reserved words, then run through `c4ai-aya-expanse-32b` via the Cohere API to translate the remaining content (identifiers, comments, docstrings, string literals) | 42, 123 |
|
| 69 |
|
| 70 |
**Condition 4 ("Community-Contributed Native Code")** is pending sufficient direct community contributions to the [`legesher/legesher-native-code`](https://huggingface.co/spaces/legesher/legesher-native-code) HF Space; no cond-4 adapter exists yet.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|