Run this model with HF Jobs

Run vllm/tiny-random-DeepseekV2ForCausalLM 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/vllm/tiny-random-DeepseekV2ForCausalLM. 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/vllm/tiny-random-DeepseekV2ForCausalLM 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/vllm/tiny-random-DeepseekV2ForCausalLM. 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/vllm/tiny-random-DeepseekV2ForCausalLM. 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.

tiny-random-DeepseekV2ForCausalLM

Randomly initialised DeepseekV2ForCausalLM for testing MLA (multi-head latent attention) and MoE code paths without loading a 29 GiB checkpoint. Used by vLLM's tests/models/transformers/test_backend.py::test_mla.

The attention head dimensions are copied verbatim from deepseek-ai/DeepSeek-V2-Lite-Chat so that kv_lora_rank + qk_rope_head_dim == 576, the latent head size every MLA kernel is built around. Only the width, depth and expert counts are shrunk.

DeepSeek-V2-Lite-Chat this model
kv_lora_rank 512 512
qk_nope_head_dim 128 128
qk_rope_head_dim 64 64
v_head_dim 128 128
hidden_size 2048 256
num_hidden_layers 27 4
num_attention_heads 16 4
n_routed_experts 64 8
n_shared_experts 2 2
parameters 15.7B 59.8M

Layer 0 is dense and the rest are MoE (first_k_dense_replace=1), matching the real model. The tokenizer is DeepSeek-V2-Lite-Chat's, unmodified.

The weights are random, so the outputs are meaningless. This is only useful for checking that two implementations agree with each other.

Downloads last month
1,508
Safetensors
Model size
59.8M params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including vllm/tiny-random-DeepseekV2ForCausalLM