Run this model with HF Jobs
Run dnnsdunca/Ddroidlabs-Codex-mini 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/dnnsdunca/Ddroidlabs-Codex-mini. 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/dnnsdunca/Ddroidlabs-Codex-mini 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/dnnsdunca/Ddroidlabs-Codex-mini. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/dnnsdunca/Ddroidlabs-Codex-mini. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use dnnsdunca/Ddroidlabs-Codex-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use dnnsdunca/Ddroidlabs-Codex-mini with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("<base-model-id>") model.load_adapter("dnnsdunca/Ddroidlabs-Codex-mini", set_active=True) - Notebooks
- Google Colab
- Kaggle
File size: 385 Bytes
1f6a5b9 | 1 2 3 4 5 6 7 8 9 10 11 | # database_agent.py
class DatabaseAgent:
def __init__(self, model, tokenizer):
self.model = model
self.tokenizer = tokenizer
def process(self, task_data):
inputs = self.tokenizer(task_data['task'], return_tensors='pt')
outputs = self.model.generate(**inputs)
return self.tokenizer.decode(outputs[0], skip_special_tokens=True)
|