Run this model with HF Jobs

Run microsoft/Phi-3-vision-128k-instruct 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/microsoft/Phi-3-vision-128k-instruct. 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/microsoft/Phi-3-vision-128k-instruct 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/microsoft/Phi-3-vision-128k-instruct. 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/microsoft/Phi-3-vision-128k-instruct. 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.

Shorter context window to reduct inference memory allocation

#31
by JochenGrey - opened

Is it possible to shorten the context length to e.g. 50k to limit the amount of memory being used during inference?
Would rope scaling factors need to be adjusted in case of shorter inference context?

Perhaps a larger context is needed to reduce inference time?

@mikestaub why would larger context reduce inference time? If you fill say 3k of context with real tokens, doesnt the balance ~125k get filled with padding?
Is there anyway to reduce the context length? For example mimicking as if phi-3-vision had been Clip + Phi3-4k-instruct (rather than the 128k?)
@JochenGrey - Any idea how to reduce the context length?

Sign up or log in to comment