Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/ChatGLM3
/ functions
Functions
152 in github.com/zai-org/ChatGLM3
⨍
Functions
152
◇
Types & classes
49
↳
Endpoints
8
Method
__post_init__
(self)
finetune_demo/finetune_hf.py:170
Method
__str__
(self)
composite_demo/conversation.py:19
Method
__str__
(self)
composite_demo/conversation.py:58
Method
_call
(self, prompt: str, history: List = [], stop: Optional[List[str]] = ["<|user|>"])
langchain_demo/ChatGLM3.py:127
Method
_llm_type
(self)
langchain_demo/ChatGLM3.py:22
Method
_run
(self, calculation: str)
langchain_demo/tools/Calculator.py:34
Method
_run
(self, location: str)
langchain_demo/tools/Weather.py:20
Method
_run
(self, distance: float, unit: str, to_unit: str)
langchain_demo/tools/DistanceConversion.py:21
Function
build_prompt
(history)
basic_demo/cli_demo_bad_word_ids.py:37
Function
build_prompt
(history)
basic_demo/cli_demo.py:20
Function
build_prompt
(history)
tools_using_demo/cli_demo_tool.py:21
Function
compute_metrics
(eval_preds: EvalPrediction, tokenizer: PreTrainedTokenizer)
finetune_demo/finetune_hf.py:419
Function
create_chat_completion
(request: ChatCompletionRequest)
openai_api_demo/api_server.py:226
Function
create_chat_completion
(request: ChatCompletionRequest)
Intel_device_demo/ipex_llm_cpu_demo/api_server.py:221
Method
data_files
(self)
finetune_demo/finetune_hf.py:147
Method
data_format
(self)
finetune_demo/finetune_hf.py:143
Method
execute_interactive
(self, code, verbose=False)
composite_demo/demo_ci.py:91
Function
function_chat
()
Intel_device_demo/ipex_llm_cpu_demo/openai_api_request.py:20
Method
generate_stream
( self, system: str | None, tools: list[dict] | None, history:
composite_demo/client.py:155
Function
get_embeddings
(request: EmbeddingRequest)
openai_api_demo/api_server.py:179
Function
get_embeddings
(request: EmbeddingRequest)
Intel_device_demo/ipex_llm_cpu_demo/api_server.py:177
Function
get_shell
Use shell to run command
composite_demo/tool_registry.py:120
Function
get_weather
Get the current weather for `city_name`
composite_demo/tool_registry.py:93
Function
get_weather
Get the current weather for `city_name`
tools_using_demo/tool_register.py:90
Function
health
Health check.
openai_api_demo/api_server.py:173
Function
health
Health check.
Intel_device_demo/ipex_llm_cpu_demo/api_server.py:171
Method
inspect
(self, code, verbose=False)
composite_demo/demo_ci.py:100
Method
interrupt
(self)
composite_demo/demo_ci.py:147
Method
is_alive
(self)
composite_demo/demo_ci.py:152
Function
lifespan
(app: FastAPI)
openai_api_demo/api_server.py:62
Function
lifespan
(app: FastAPI)
Intel_device_demo/ipex_llm_cpu_demo/api_server.py:60
Function
list_models
()
openai_api_demo/api_server.py:216
Function
list_models
()
Intel_device_demo/ipex_llm_cpu_demo/api_server.py:211
Function
main
( prompt_text: str, top_p: float = 0.2, temperature: float = 0.1, repetition_p
composite_demo/demo_tool.py:63
Function
main
( prompt_text: str, top_p: float = 0.2, temperature: float = 0.1, repetition_p
composite_demo/demo_ci.py:224
Function
main
( prompt_text: str, system_prompt: str, top_p: float = 0.8, temperature: float
composite_demo/demo_chat.py:20
Function
main
( model_dir: Annotated[str, typer.Argument(help='')], prompt: Annotated[str, typer.Option(help
finetune_demo/inference_hf.py:46
Function
main
( data_dir: Annotated[str, typer.Argument(help='')], model_dir: Annotated[ str,
finetune_demo/finetune_hf.py:443
Method
parameter_validation
You can write your own parameter validation rules here, you can refer to the code given here. :param para: :return:
langchain_demo/tools/Calculator.py:20
Function
predict
(history, max_length, top_p, temperature, system_prompt)
basic_demo/web_demo_gradio.py:115
Method
prediction_step
( self, model: nn.Module, inputs: dict[str, Any], prediction_l
finetune_demo/finetune_hf.py:71
Function
preprocess_text
( system: str | None, tools: list[dict] | None, history: list[Conversation], )
composite_demo/conversation.py:92
Function
process_batch
( batch: Mapping[str, Sequence], tokenizer: PreTrainedTokenizer, max_input_length: int
finetune_demo/finetune_hf.py:275
Function
process_batch_eval
( batch: Mapping[str, Sequence], tokenizer: PreTrainedTokenizer, max_input_length: int
finetune_demo/finetune_hf.py:329
Function
random_number_generator
Generates a random number x, s.t. range[0] <= x < range[1]
composite_demo/tool_registry.py:74
Function
random_number_generator
Generates a random number x, s.t. range[0] <= x < range[1]
tools_using_demo/tool_register.py:71
Function
register_tool
(func: callable)
composite_demo/tool_registry.py:19
Function
register_tool
(func: callable)
tools_using_demo/tool_register.py:15
Method
restart
(self)
composite_demo/demo_ci.py:142
Method
shutdown
(self)
composite_demo/demo_ci.py:134
Function
tool_call
(**kwargs)
Intel_device_demo/ipex_llm_cpu_demo/utils.py:30
Function
user
(query, history)
basic_demo/web_demo_gradio.py:173
← previous
101–152 of 152, ranked by callers