Run this model with HF Jobs

Run tiny-random/lfm3-vl 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/tiny-random/lfm3-vl. 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/tiny-random/lfm3-vl 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/tiny-random/lfm3-vl. 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/tiny-random/lfm3-vl. 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.
lfm3-vl / .meta /model.log
yujiepan's picture
Upload folder using huggingface_hub
bd2c39a verified
Raw History Blame Contribute Delete
13.4 kB
Lfm3VlForConditionalGeneration(
(model): Lfm3VlModel(
(vision_tower): Lfm3VlVisionModel(
(patchifier): Linear(in_features=1536, out_features=256, bias=False)
(embedding_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(rotary_pos_emb): Lfm3VlVisionRotaryEmbedding()
(layers): ModuleList(
(0-1): 2 x Lfm3VlVisionLayer(
(conv): Lfm3VlVisionConv2d(
(in_proj): Linear(in_features=256, out_features=768, bias=False)
(spatial_conv): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), groups=256, bias=False)
(out_proj): Linear(in_features=256, out_features=256, bias=False)
)
(feed_forward): Lfm3VlMLP(
(w1): Linear(in_features=256, out_features=640, bias=False)
(w3): Linear(in_features=256, out_features=640, bias=False)
(w2): Linear(in_features=640, out_features=256, bias=False)
)
(operator_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(ffn_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
)
(2): Lfm3VlVisionLayer(
(self_attn): Lfm3VlVisionAttention(
(q_proj): Linear(in_features=256, out_features=256, bias=False)
(k_proj): Linear(in_features=256, out_features=128, bias=False)
(v_proj): Linear(in_features=256, out_features=128, bias=False)
(out_proj): Linear(in_features=256, out_features=256, bias=False)
(q_layernorm): Lfm3VlRMSNorm((32,), eps=1e-05)
(k_layernorm): Lfm3VlRMSNorm((32,), eps=1e-05)
)
(feed_forward): Lfm3VlMLP(
(w1): Linear(in_features=256, out_features=640, bias=False)
(w3): Linear(in_features=256, out_features=640, bias=False)
(w2): Linear(in_features=640, out_features=256, bias=False)
)
(operator_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(ffn_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
)
(3): Lfm3VlVisionLayer(
(conv): Lfm3VlVisionConv2d(
(in_proj): Linear(in_features=256, out_features=768, bias=False)
(spatial_conv): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), groups=256, bias=False)
(out_proj): Linear(in_features=256, out_features=256, bias=False)
)
(feed_forward): Lfm3VlMLP(
(w1): Linear(in_features=256, out_features=640, bias=False)
(w3): Linear(in_features=256, out_features=640, bias=False)
(w2): Linear(in_features=640, out_features=256, bias=False)
)
(operator_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(ffn_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
)
(4): Lfm3VlVisionLayer(
(self_attn): Lfm3VlVisionAttention(
(q_proj): Linear(in_features=256, out_features=256, bias=False)
(k_proj): Linear(in_features=256, out_features=128, bias=False)
(v_proj): Linear(in_features=256, out_features=128, bias=False)
(out_proj): Linear(in_features=256, out_features=256, bias=False)
(q_layernorm): Lfm3VlRMSNorm((32,), eps=1e-05)
(k_layernorm): Lfm3VlRMSNorm((32,), eps=1e-05)
)
(feed_forward): Lfm3VlMLP(
(w1): Linear(in_features=256, out_features=640, bias=False)
(w3): Linear(in_features=256, out_features=640, bias=False)
(w2): Linear(in_features=640, out_features=256, bias=False)
)
(operator_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(ffn_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
)
(5): Lfm3VlVisionLayer(
(conv): Lfm3VlVisionConv2d(
(in_proj): Linear(in_features=256, out_features=768, bias=False)
(spatial_conv): Conv2d(256, 256, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), groups=256, bias=False)
(out_proj): Linear(in_features=256, out_features=256, bias=False)
)
(feed_forward): Lfm3VlMLP(
(w1): Linear(in_features=256, out_features=640, bias=False)
(w3): Linear(in_features=256, out_features=640, bias=False)
(w2): Linear(in_features=640, out_features=256, bias=False)
)
(operator_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
(ffn_norm): Lfm3VlRMSNorm((256,), eps=1e-05)
)
)
)
(multi_modal_projector): Lfm3VlMultiModalProjector(
(layer_norm): LayerNorm((256,), eps=1e-06, elementwise_affine=True, bias=True)
(linear_1): Linear(in_features=1024, out_features=128, bias=True)
(act): GELUActivation()
(linear_2): Linear(in_features=128, out_features=64, bias=True)
)
(language_model): Lfm3Model(
(embed_tokens): Embedding(128000, 64, padding_idx=124893)
(layers): ModuleList(
(0-1): 2 x Lfm3DecoderLayer(
(conv): Lfm3ShortConv(
(conv): Conv1d(64, 64, kernel_size=(7,), stride=(1,), padding=(6,), groups=64, bias=False)
(in_proj): Linear(in_features=64, out_features=192, bias=False)
(out_proj): Linear(in_features=64, out_features=64, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(2): Lfm3DecoderLayer(
(self_attn): Lfm3Attention(
(q_proj): Linear(in_features=64, out_features=512, bias=False)
(k_proj): Linear(in_features=64, out_features=128, bias=False)
(v_proj): Linear(in_features=64, out_features=128, bias=False)
(o_proj): Linear(in_features=512, out_features=64, bias=False)
(q_norm): Lfm3RMSNorm((32,), eps=1e-05)
(k_norm): Lfm3RMSNorm((32,), eps=1e-05)
(gate_proj): Linear(in_features=64, out_features=16, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(3): Lfm3DecoderLayer(
(conv): Lfm3ShortConv(
(conv): Conv1d(64, 64, kernel_size=(7,), stride=(1,), padding=(6,), groups=64, bias=False)
(in_proj): Linear(in_features=64, out_features=192, bias=False)
(out_proj): Linear(in_features=64, out_features=64, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(4): Lfm3DecoderLayer(
(self_attn): Lfm3Attention(
(q_proj): Linear(in_features=64, out_features=512, bias=False)
(k_proj): Linear(in_features=64, out_features=128, bias=False)
(v_proj): Linear(in_features=64, out_features=128, bias=False)
(o_proj): Linear(in_features=512, out_features=64, bias=False)
(q_norm): Lfm3RMSNorm((32,), eps=1e-05)
(k_norm): Lfm3RMSNorm((32,), eps=1e-05)
(gate_proj): Linear(in_features=64, out_features=16, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(5): Lfm3DecoderLayer(
(conv): Lfm3ShortConv(
(conv): Conv1d(64, 64, kernel_size=(7,), stride=(1,), padding=(6,), groups=64, bias=False)
(in_proj): Linear(in_features=64, out_features=192, bias=False)
(out_proj): Linear(in_features=64, out_features=64, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(6): Lfm3DecoderLayer(
(self_attn): Lfm3Attention(
(q_proj): Linear(in_features=64, out_features=512, bias=False)
(k_proj): Linear(in_features=64, out_features=128, bias=False)
(v_proj): Linear(in_features=64, out_features=128, bias=False)
(o_proj): Linear(in_features=512, out_features=64, bias=False)
(q_norm): Lfm3RMSNorm((32,), eps=1e-05)
(k_norm): Lfm3RMSNorm((32,), eps=1e-05)
(gate_proj): Linear(in_features=64, out_features=16, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(7): Lfm3DecoderLayer(
(conv): Lfm3ShortConv(
(conv): Conv1d(64, 64, kernel_size=(7,), stride=(1,), padding=(6,), groups=64, bias=False)
(in_proj): Linear(in_features=64, out_features=192, bias=False)
(out_proj): Linear(in_features=64, out_features=64, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(8): Lfm3DecoderLayer(
(self_attn): Lfm3Attention(
(q_proj): Linear(in_features=64, out_features=512, bias=False)
(k_proj): Linear(in_features=64, out_features=128, bias=False)
(v_proj): Linear(in_features=64, out_features=128, bias=False)
(o_proj): Linear(in_features=512, out_features=64, bias=False)
(q_norm): Lfm3RMSNorm((32,), eps=1e-05)
(k_norm): Lfm3RMSNorm((32,), eps=1e-05)
(gate_proj): Linear(in_features=64, out_features=16, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
(9): Lfm3DecoderLayer(
(conv): Lfm3ShortConv(
(conv): Conv1d(64, 64, kernel_size=(7,), stride=(1,), padding=(6,), groups=64, bias=False)
(in_proj): Linear(in_features=64, out_features=192, bias=False)
(out_proj): Linear(in_features=64, out_features=64, bias=False)
)
(feed_forward): Lfm3MLP(
(w1): Linear(in_features=64, out_features=128, bias=False)
(w3): Linear(in_features=64, out_features=128, bias=False)
(w2): Linear(in_features=128, out_features=64, bias=False)
)
(operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_operator_norm): Lfm3RMSNorm((64,), eps=1e-05)
(post_ffn_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
)
(rotary_emb): Lfm3RotaryEmbedding()
(embedding_norm): Lfm3RMSNorm((64,), eps=1e-05)
)
)
(lm_head): Linear(in_features=64, out_features=128000, bias=False)
)