MCPcopy Create free account
hub / github.com/Bytez-com/docs / InferenceOptions

Class InferenceOptions

sdk/python/bytez/interface.py:4–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2from typing import Literal
3
4class InferenceOptions(TypedDict, total=False):
5 max_length: int
6 max_new_tokens: int
7 min_length: int
8 min_new_tokens: int
9 early_stopping: Optional[bool]
10 max_time: int
11 do_sample: bool
12 num_beams: int
13 num_beam_groups: int
14 penalty_alpha: float
15 use_cache: bool
16 temperature: float
17 top_k: int
18 top_p: float
19 typical_p: float
20 epsilon_cutoff: float
21 eta_cutoff: float
22 diversity_penalty: float
23 repetition_penalty: float
24 encoder_repetition_penalty: float
25 length_penalty: float
26 no_repeat_ngram_size: int
27 bad_words_ids: list
28 force_words_ids: list
29 renormalize_logits: bool
30 constraints: list
31 forced_bos_token_id: int
32 forced_eos_token_id: Optional[int]
33 remove_invalid_values: bool
34 exponential_decay_length_penalty: list
35 suppress_tokens: list
36 begin_suppress_tokens: list
37 forced_decoder_ids: list
38 num_return_sequences: int
39 output_attentions: bool
40 output_hidden_states: bool
41 output_scores: bool
42 return_dict_in_generate: bool
43 pad_token_id: int
44 bos_token_id: int
45 eos_token_id: Optional[int]
46 encoder_no_repeat_ngram_size: int
47 decoder_start_token_id: int
48 generation_kwargs: dict
49
50
51Task = Literal[

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected