Run this model with HF Jobs

Run moonshotai/Kimi-K2-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/moonshotai/Kimi-K2-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/moonshotai/Kimi-K2-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/moonshotai/Kimi-K2-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/moonshotai/Kimi-K2-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.

I may not know the maybe obvious answer to this but I'm curious.

#20
by drmcbride - opened

I understand the massive speed increase of using MOE so that we only activate 32b param per token but why not just train a dense 1T param model and just win on all benchmarks? what gets in the way of that? I'm sure there is a correct answer I'm missing I just want to know what it is.

Given a fixed training budget, MoE models consistently outperform dense ones. A quick way to estimate LLM training FLOPs is 6ND (N = active parameters, D = tokens). A 32B/1T MoE therefore uses far fewer FLOPs than a 1T dense model. With more training budget, we may simply scale the MoE further. Notice that, the larger total parameter will lead to larger communication cost, so it is not totally free. We will discuss this trade-off in K2 tech report

For deeper dives about MOE, I recommend two excellent papers:
https://arxiv.org/pdf/2202.08906
https://arxiv.org/abs/2401.06066

Sign up or log in to comment