MCPcopy Create free account

hub / github.com/QwenLM/Qwen / functions

Functions206 in github.com/QwenLM/Qwen

↓ 1 callersFunctionis_callable
(response, golden)
eval/evaluate_plugin.py:18
↓ 1 callersFunctionis_correct
(completion, answer)
eval/evaluate_chat_gsm8k.py:62
↓ 1 callersFunctionis_correct
(completion, answer)
eval/evaluate_gsm8k.py:68
↓ 1 callersFunctionlearn_bpe
( freqs: "dict[str,int]", existing: "dict[bytes, int]" )
examples/add_merges.py:109
↓ 1 callersFunctionllm_with_plugin
(prompt: str, history, list_of_plugin_info=())
examples/react_demo.py:72
↓ 1 callersFunctionload_expand_vocab
(path: Path)
examples/add_merges.py:133
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_cmmlu.py:24
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_plugin.py:185
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_chat_ceval.py:23
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_ceval.py:21
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_mmlu.py:22
↓ 1 callersFunctionload_models_tokenizer
(args)
eval/evaluate_chat_mmlu.py:23
↓ 1 callersFunctionload_tiktoken_bpe
(tiktoken_bpe_file: str)
examples/add_merges.py:21
↓ 1 callersFunctionmain
()
cli_demo.py:105
↓ 1 callersFunctionmain
()
web_demo.py:200
↓ 1 callersFunctionmain
(args)
eval/evaluate_cmmlu.py:281
↓ 1 callersFunctionmain
(args)
eval/evaluate_plugin.py:228
↓ 1 callersFunctionmain
(args)
eval/evaluate_chat_ceval.py:405
↓ 1 callersFunctionmain
(args)
eval/evaluate_ceval.py:384
↓ 1 callersFunctionmain
(args)
eval/evaluate_mmlu.py:194
↓ 1 callersFunctionmain
(args)
eval/evaluate_chat_mmlu.py:185
↓ 1 callersFunctionmain
()
examples/add_merges.py:194
↓ 1 callersFunctionmain
()
examples/function_call_finetune_examples.py:86
↓ 1 callersFunctionmake_context
( tokenizer: PreTrainedTokenizer, query: str, history: List[Tuple[str, str]] = None, syste
recipes/inference/vllm/vllm_wrapper.py:32
↓ 1 callersFunctionmake_context
( tokenizer: PreTrainedTokenizer, query: str, history: List[Tuple[str, str]] = None, syste
examples/vllm_wrapper.py:32
↓ 1 callersFunctionmake_new_merges_by_bpe
( input_path: Path, output_path: Path, expand_path: Path, start_id: int )
examples/add_merges.py:161
↓ 1 callersFunctionmake_supervised_data_module
Make dataset and collator for supervised fine-tuning.
finetune.py:235
↓ 1 callersFunctionmaybe_zero_3
(param)
finetune.py:66
↓ 1 callersFunctionmerge_code_and_comments
(original_file, comments_path)
examples/auto_comments.py:80
↓ 1 callersFunctionmerge_vocab
( pair: "tuple[bytes, bytes]", vocab: "dict[tuple[bytes, ...], int]" )
examples/add_merges.py:53
↓ 1 callersFunctionnumber_equal
(answer, pred)
eval/evaluate_chat_gsm8k.py:66
↓ 1 callersFunctionparse_args
()
examples/auto_comments.py:14
↓ 1 callersFunctionparse_latest_plugin_call
(text)
examples/react_demo.py:165
↓ 1 callersFunctionparse_messages
(messages, functions)
openai_api.py:191
↓ 1 callersFunctionparse_response
(response)
openai_api.py:310
↓ 1 callersFunctionpredict
( query: str, history: List[List[str]], model_id: str, stop_words: List[str], gen_kwargs:
openai_api.py:467
↓ 1 callersFunctionpredict
(_query, _chatbot, _task_history)
web_demo.py:119
↓ 1 callersFunctionpreprocess
( sources, tokenizer: transformers.PreTrainedTokenizer, max_len: int, system_message: str
run_gptq.py:13
↓ 1 callersFunctionprocess_before_extraction
(gen, question, choice_dict)
eval/evaluate_chat_ceval.py:37
↓ 1 callersFunctionprocess_before_extraction
(gen, choice_dict)
eval/evaluate_chat_mmlu.py:53
↓ 1 callersFunctionread_file
(path)
examples/auto_comments.py:53
↓ 1 callersMethodresponse_batch
(self, querys: List[str], historys: List[List[Tuple[str, str]]] = None,
dcu-support/package/fastllm_pytools/llm.py:446
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
finetune.py:109
↓ 1 callersMethodset_adapter
(self, name: str)
dcu-support/package/fastllm_pytools/llm.py:406
↓ 1 callersFunctionsplit_context_by_maxline
(text)
examples/auto_comments.py:63
↓ 1 callersFunctionsplit_context_by_splitkey
(text)
examples/auto_comments.py:75
↓ 1 callersFunctiontest
()
examples/react_demo.py:210
↓ 1 callersFunctiontest_1
()
examples/function_call_examples.py:37
↓ 1 callersFunctiontest_2
()
examples/function_call_examples.py:58
↓ 1 callersFunctiontest_3
()
examples/function_call_examples.py:171
↓ 1 callersFunctiontest_4
()
examples/function_call_examples.py:220
↓ 1 callersFunctiontext_complete_last_message
(history, stop_words_ids, gen_kwargs, system)
openai_api.py:356
↓ 1 callersFunctiontext_completion
(input_text: str, stop_words)
examples/react_demo.py:144
↓ 1 callersMethodtokenizer_encode_string
(self, content: str)
dcu-support/package/fastllm_pytools/llm.py:168
↓ 1 callersFunctiontrain
()
finetune.py:256
↓ 1 callersFunctiontransfer
(args)
examples/auto_comments.py:175
↓ 1 callersFunctionwrite_int4
(fo, v)
dcu-support/package/fastllm_pytools/torch2flm.py:41
↓ 1 callersFunctionwrite_int8
(fo, v)
dcu-support/package/fastllm_pytools/torch2flm.py:30
Method__getitem__
(self, i)
finetune.py:196
Method__getitem__
(self, i)
finetune.py:220
Method__init__
(self, raw_data, tokenizer: transformers.PreTrainedTokenizer, max_len: int)
finetune.py:207
Method__init__
(self, app, username: str, password: str)
openai_api.py:31
Method__init__
(self, model_dir: str, trust_remote_code: bool = True, tensor_
recipes/inference/vllm/vllm_wrapper.py:105
Method__init__
( self, chat_prompt_template=None, run_prompt_template=None, additional_tools=
eval/evaluate_plugin.py:130
Method__init__
(self)
examples/auto_comments.py:22
Method__init__
(self, model_dir: str, trust_remote_code: bool = True, tensor_
examples/vllm_wrapper.py:105
Method__init__
(self, path : str, id : int = -99999)
dcu-support/package/fastllm_pytools/llm.py:119
Method__len__
(self)
finetune.py:193
Method__len__
(self)
finetune.py:217
Functionbest_pair_sort_key
( item: "tuple[dict[bytes, bytes], int]", )
examples/add_merges.py:97
Methodbuild_tokenizer_decode_token_cache
(self)
dcu-support/package/fastllm_pytools/llm.py:157
Methodchat
(self, tokenizer, query: str, history: List[Tuple[str, str]] = None, max_length: int = 8192, do_s
dcu-support/package/fastllm_pytools/llm.py:317
Methodchat_batch
(self, tokenizer, querys: List[str], historys: List[List[Tuple[str, str]]] = None, max_length: int = 1024,
dcu-support/package/fastllm_pytools/llm.py:468
Functioncount_substr
(gen, pattern)
eval/evaluate_chat_ceval.py:64
Functioncreate
(model, tokenizer = None, pre_prompt = None, user_role = None, bot
dcu-support/package/fastllm_pytools/hf_model.py:17
Functioncreate_chat_completion
(request: ChatCompletionRequest)
openai_api.py:386
Methoddisable_adapter
(self)
dcu-support/package/fastllm_pytools/llm.py:409
Methoddispatch
(self, request: Request, call_next)
openai_api.py:36
Functionfrom_hf
(model, tokenizer = None, dtype = "float16")
dcu-support/package/fastllm_pytools/llm.py:112
Methodgenerate_one
(self, prompt, stop)
eval/evaluate_plugin.py:164
Functionget_cpu_kvcache
()
dcu-support/package/fastllm_pytools/llm.py:82
Functionget_cpu_low_mem
()
dcu-support/package/fastllm_pytools/llm.py:88
Functionget_cpu_threads
()
dcu-support/package/fastllm_pytools/llm.py:73
Functionlifespan
(app: FastAPI)
openai_api.py:63
Functionlist_models
()
openai_api.py:138
Functionload_model_on_gpus
(model_name_or_path, num_gpus: int = 2)
utils.py:28
Functionpostprocess
(self, y)
web_demo.py:64
Functionprint_ins_info
()
dcu-support/package/fastllm_pytools/llm.py:76
Functionregenerate
(_chatbot, _task_history)
web_demo.py:134
Functionreset_state
(_chatbot, _task_history)
web_demo.py:145
Functionreset_user_input
()
web_demo.py:142
Methodresponse
(self, query: str, history: List[Tuple[str, str]] = None, m
dcu-support/package/fastllm_pytools/llm.py:241
Methodresponse_logits
(self, query: str, history: List[Tuple[str, str]] = None,
dcu-support/package/fastllm_pytools/llm.py:219
Methodsave
(self, path : str)
dcu-support/package/fastllm_pytools/llm.py:151
Functionset_cpu_kvcache
(cpu_kvcache)
dcu-support/package/fastllm_pytools/llm.py:79
Functionset_cpu_low_mem
(low_mem)
dcu-support/package/fastllm_pytools/llm.py:85
Functionset_cpu_threads
(threads: int)
dcu-support/package/fastllm_pytools/llm.py:70
Functionset_device_map
(device_map)
dcu-support/package/fastllm_pytools/llm.py:91
Methodstream_chat
(self, tokenizer, query: str, history: List[Tuple[str, str]] = None, past_key_values = None,
dcu-support/package/fastllm_pytools/llm.py:358
Methodstream_response_raw
(self, input_tokens: List[int], max_length: int = 8192
dcu-support/package/fastllm_pytools/llm.py:290
← previousnext →101–200 of 206, ranked by callers