Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenMOSS/MOSS
/ functions
Functions
130 in github.com/OpenMOSS/MOSS
⨍
Functions
130
◇
Types & classes
21
↳
Endpoints
3
Method
execute
( self, input_ids: Optional[jt.Var] = None, past_key_values: Optional[Tuple[Tuple[jt.V
models_jittor/model.py:255
Method
execute
( self, input_ids: Optional[jt.Var] = None, past_key_values: Optional[Tuple[Tuple[jt.V
models_jittor/model.py:358
Method
find_re
(string, pattern, start_pos)
models/tokenization_moss.py:355
Method
forward
( self, hidden_states: Optional[torch.FloatTensor], layer_past: Optional[Tuple[torch.T
models/modeling_moss.py:151
Method
forward
(self, hidden_states: Optional[torch.FloatTensor])
models/modeling_moss.py:241
Method
forward
( self, hidden_states: Optional[torch.FloatTensor], layer_past: Optional[Tuple[torch.T
models/modeling_moss.py:258
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
models/modeling_moss.py:422
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for language modeling. Note that the
models/modeling_moss.py:655
Method
forward
(ctx, input, qweight, scales, qzeros, g_idx, bits, maxq)
models/quantization.py:278
Method
forward
(self, x)
models/quantization.py:365
Function
generate_answer
()
moss_web_demo_streamlit.py:92
Method
get_input_embeddings
(self)
models/modeling_moss.py:410
Method
get_output_embeddings
(self)
models/modeling_moss.py:616
Method
get_vocab
(self)
models/tokenization_moss.py:193
Method
kernel_call
()
models/custom_autotune.py:63
Function
matmul_248_kernel
Compute the matrix multiplication C = A x B. A is of shape (M, K) float16 B is of shape (K//8, N) int32 C is of shape (M, N) float16
models/quantization.py:57
Method
noop
(*args, **kwargs)
models/modeling_moss.py:598
Method
pack
(self, linear, scales, zeros, g_idx=None)
models/quantization.py:315
Function
postprocess
(self, y)
moss_web_demo_gradio.py:68
Function
predict
(input, chatbot, max_length, top_p, temperature, history)
moss_web_demo_gradio.py:115
Method
prepare_for_tokenization
(self, text, is_split_into_words=False, **kwargs)
models/tokenization_moss.py:304
Method
prepare_inputs_for_generation
(self, input_ids, past_key_values=None, **kwargs)
models/modeling_moss.py:622
Function
reset_state
()
moss_web_demo_gradio.py:150
Function
reset_user_input
()
moss_web_demo_gradio.py:146
Method
save_vocabulary
(self, save_directory: str, filename_prefix: Optional[str] = None)
models/tokenization_moss.py:275
Method
set_input_embeddings
(self, new_embeddings)
models/modeling_moss.py:413
Method
set_output_embeddings
(self, new_embeddings)
models/modeling_moss.py:619
Function
trans_matmul_248_kernel
Compute the matrix multiplication C = A x B. A is of shape (M, N) float16 B is of shape (K//8, N) int32 C is of shape (M, K) float16
models/quantization.py:168
Method
vocab_size
(self)
models/tokenization_moss.py:190
Method
warmup
(self, *args, **kwargs)
models/custom_autotune.py:121
← previous
101–130 of 130, ranked by callers