codeparrot/codeparrot-clean
Viewer โข Updated โข 5.17M โข 51k โข 92
Run dnnsdunca/Logical_Algorithm 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:
Use HF Jobs to fine-tune https://huggingface.co/dnnsdunca/Logical_Algorithm. 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.
Use HF Jobs to run batch inference with https://huggingface.co/dnnsdunca/Logical_Algorithm 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.
How to use dnnsdunca/Logical_Algorithm with Adapters:
from adapters import AutoAdapterModel
model = AutoAdapterModel.from_pretrained("<base-model-id>")
model.load_adapter("dnnsdunca/Logical_Algorithm", set_active=True)This project trains a code generator model using Hugging Face's GPT-2 and deploys it with a chat interface using FastAPI and CodeMirror for syntax highlighting.
Install dependencies:
pip install -r requirements.txt
Train the model:
python model_training.py
Run the FastAPI server:
uvicorn app:app --reload
Open index.html in your browser to interact with the model.