Run this model with HF Jobs

Run PipableAI/pip-sql-1.3b 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 and TRL to fine-tune https://huggingface.co/PipableAI/pip-sql-1.3b. 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/PipableAI/pip-sql-1.3b 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/PipableAI/pip-sql-1.3b. 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/PipableAI/pip-sql-1.3b. 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.

[AUTOMATED] Model Memory Requirements

#4
by model-sizer-bot - opened

Model Memory Requirements

You will need about {'dtype': 'float16/bfloat16', 'Largest Layer or Residual Group': '126.0 MB', 'Total Size': '2.57 GB', 'Training using Adam (Peak vRAM)': {'model': 5524305920, 'optimizer': 11048611840, 'gradients': 8286458880, 'step': 11048611840}} VRAM to load this model for inference, and {'dtype': 'int4', 'Largest Layer or Residual Group': '31.5 MB', 'Total Size': '658.55 MB', 'Training using Adam (Peak vRAM)': {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}} VRAM to train it using Adam.

These calculations were measured from the Model Memory Utility Space on the Hub.

The minimum recommended vRAM needed for this model assumes using Accelerate or device_map="auto" and is denoted by the size of the "largest layer".
When performing inference, expect to add up to an additional 20% to this, as found by EleutherAI. More tests will be performed in the future to get a more accurate benchmark for each model.

When training with Adam, you can expect roughly 4x the reported results to be used. (1x for the model, 1x for the gradients, and 2x for the optimizer).

Results:

dtype Largest Layer or Residual Group Total Size Training using Adam (Peak vRAM)
float32 252.0 MB 5.14 GB {'model': 5524305920, 'optimizer': 11048611840, 'gradients': 5524305920, 'step': 22097223680}
float16/bfloat16 126.0 MB 2.57 GB {'model': 5524305920, 'optimizer': 11048611840, 'gradients': 8286458880, 'step': 11048611840}
int8 63.0 MB 1.29 GB {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}
int4 31.5 MB 658.55 MB {'model': -1, 'optimizer': -1, 'gradients': -1, 'step': -1}

Sign up or log in to comment