Run this model with HF Jobs

Run Raiff1982/Codette2 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/Raiff1982/Codette2. 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/Raiff1982/Codette2 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.
Codette2 / codette_api.py
Raiff1982's picture
Upload 6 files
fc64f2a verified
Raw History Blame Contribute Delete
350 Bytes
from fastapi import FastAPI
from pydantic import BaseModel
from codette.codette_core import AICore
app = FastAPI()
codette = AICore()
class PromptRequest(BaseModel):
prompt: str
@app.post("/codette/respond")
def respond(prompt_request: PromptRequest):
result = codette.process_input(prompt_request.prompt)
return {"response": result}