Skip to content

manueldeprada

sampling_with_kvcache_hf_helpers

manueldeprada/sampling_with_kvcache_hf_helpers

sampling_with_kvcache_hf_helpers is a text generation model from manueldeprada. Use it when you need the model to write or continue text. It is set up for transformers.

A clean, hackable implementation of sampling (also called ancestral sampling or multinomial sampling) with full KV cache support. This is a simplified alternative to the complex generation mixin in transformers, desig…

Downloads · 30 days

22

20% of all-time downloads

All-time downloads

108

Public

Parameters

135M

269 MB on disk

Likes

0

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.safetensors269 MB · 99%

At a glance

Task
Text Generation
Library
transformers
Model type
llama
Access
Public
Created
Jun 27, 2025
Updated
Jun 27, 2025
SHA
9826914c

Try a prompt

Task
Text Generation
Library
transformers
Type
llama
Created
Jun 27, 2025
Updated
Jun 27, 2025