Skip to content

transformers-community

contrastive-search

transformers-community/contrastive-search

contrastive-search is a text generation model from transformers-community. Use it when you need the model to write or continue text. It is set up for transformers.

Implementation of Contrastive Search, a decoding strategy that jointly optimizes model confidence and a degeneration penalty to produce fluent, coherent, and low-repetition text. At each step, the model considers the…

Downloads · 30 days

286

37% of all-time downloads

All-time downloads

766

Public

Parameters

752M

1.5 GB on disk

Likes

2

Public

Hugging Face

Repo makeup

Click a slice to open those files.

.safetensors1.5 GB · 99%

At a glance

Task
Text Generation
Library
transformers
Model type
qwen3
Access
Public
Created
Aug 25, 2025
Updated
Sep 15, 2026
SHA
c8e1d06c

Try a prompt

Task
Text Generation
Library
transformers
Type
qwen3
Created
Aug 25, 2025
Updated
Sep 15, 2026
contrastive-search — AI Model — AIMarketly