Text Generation
Transformers
Safetensors
English
llama
meta
llama-3
conversational
text-generation-inference

Run this model with HF Jobs

Run gradientai/Llama-3-8B-Instruct-Gradient-1048k 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/gradientai/Llama-3-8B-Instruct-Gradient-1048k. 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/gradientai/Llama-3-8B-Instruct-Gradient-1048k 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/gradientai/Llama-3-8B-Instruct-Gradient-1048k. 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/gradientai/Llama-3-8B-Instruct-Gradient-1048k. 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.

Memory requirements to take advantage of full context window

#23
by andrewrreed - opened

Thanks for your awesome work on this! What is the recommended hardware setup / inference server configs for running this model while taking advantage of full 1M context window?

My understanding is that since this model was fine-tuned with step-wise RoPE theta scaling, we wouldn't actually apply any RoPE scaling args for inference, right? Doesn't that come with the drawback of huge VRAM requirement to actually use the model with these long sequence lengths? Like >1TB of VRAM needed for 262k... making the model somewhat unusable for the gpu-poor?

Seems like dynamic RoPE scaling on the base Llama3-8B model alone would be more resource efficient for achieving really long contexts... though I guess with the tradeoff of lower quality at those long contexts....

Have you ablated the long context performance against this baseline, dynamic RoPE scaling scenario? Thanks in advance for you thoughts on this!

Probably yes it requires lots of VRAM, when I used 262k, I tried with different context length while running A100 with 40 gb memory and I was only capable to give 125k input and 39 gb of memory was used during inference.

Sign up or log in to comment