Skip to content

Commit

Permalink
Fix top_n_tokens not being passed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Dec 12, 2024
1 parent 6c2df01 commit cb3d55a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/distilabel/models/llms/huggingface/inference_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,16 @@
import random
import sys
import warnings
from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple, Union
from typing import (
TYPE_CHECKING,
Any,
Dict,
List,
Literal,
Optional,
Tuple,
Union,
)

from pydantic import (
Field,
Expand Down Expand Up @@ -679,6 +688,7 @@ async def agenerate( # type: ignore
repetition_penalty=repetition_penalty,
frequency_penalty=frequency_penalty,
temperature=temperature,
top_n_tokens=top_n_tokens,
top_p=top_p,
top_k=top_k,
stop_sequences=stop_sequences,
Expand Down

0 comments on commit cb3d55a

Please sign in to comment.