Adapters
English
code

Run this model with HF Jobs

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:

Fine-tune on my dataset

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.

Run batch inference

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.
File size: 655 Bytes
2711e5b
3300078
2711e5b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
license: apache-2.0
datasets:
- codeparrot/codeparrot-clean
language:
- en
metrics:
- code_eval
library_name: adapter-transformers
tags:
- code
---
# Code Generator with Chat Interface

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.

## Setup

1. Install dependencies:
    ```bash
    pip install -r requirements.txt
    ```

2. Train the model:
    ```bash
    python model_training.py
    ```

3. Run the FastAPI server:
    ```bash
    uvicorn app:app --reload
    ```

4. Open `index.html` in your browser to interact with the model.