MCPcopy Create free account

hub / github.com/Maknee/minigpt4.cpp / functions

Functions138 in github.com/Maknee/minigpt4.cpp

↓ 13 callersMethodpanic_if_error
Raises an exception if the error code is not 0. Parameters ---------- error_code : int Error code to che
minigpt4/minigpt4_library.py:229
↓ 6 callersMethodload
minigpt4.cpp:324
↓ 6 callersMethodread_s4
minigpt4.cpp:483
↓ 5 callersMethodget_size_in_bytes
minigpt4.cpp:794
↓ 5 callersFunctionlimit_threads_in_bound
minigpt4.cpp:2524
↓ 5 callersFunctionwrite_int
(f, v)
minigpt4/convert.py:61
↓ 5 callersFunctionwrite_model
(f, model_name, model, ftype)
minigpt4/convert.py:74
↓ 4 callersMethodminigpt4_contains_eos_token
Checks if a string contains an EOS token. Args: s (str): String to check. Returns: bool: Tr
minigpt4/minigpt4_library.py:431
↓ 4 callersMethodminigpt4_is_eos
Checks if a string is EOS. Args: s (str): String to check. Returns: bool: True if the strin
minigpt4/minigpt4_library.py:445
↓ 3 callersFunctiondata_type_to_ggml_type
minigpt4.cpp:555
↓ 3 callersMethodget_tensor
minigpt4.cpp:882
↓ 3 callersMethodread_string
minigpt4.cpp:496
↓ 3 callersFunctionwrite_string
(f, s)
minigpt4/convert.py:56
↓ 2 callersFunctionalign_to_next_page
(pos)
minigpt4/convert.py:20
↓ 2 callersFunctioncontains
minigpt4.cpp:2538
↓ 2 callersFunctionends_with
minigpt4.cpp:2533
↓ 2 callersFunctionggml_type_to_data_type
minigpt4.cpp:651
↓ 2 callersFunctionload_library
Attempts to find minigpt4.cpp shared library and load it.
minigpt4/minigpt4_library.py:525
↓ 2 callersMethodminigpt4_begin_chat
Begins a chat continuing after minigpt4_begin_chat_image Args: ctx (MiniGPT4Context): Context. s (str): Ques
minigpt4/minigpt4_library.py:379
↓ 2 callersMethodminigpt4_begin_chat_image
Begins a chat with an image. Args: ctx (MiniGPT4Context): Context. image_embedding (MiniGPT4Embedding): Imag
minigpt4/minigpt4_library.py:323
↓ 2 callersFunctionminigpt4_contains_eos_token
minigpt4.cpp:2764
↓ 2 callersMethodminigpt4_encode_image
Encodes an image into embedding Args: ctx (MiniGPT4Context): Context. image (MiniGPT4Image): Image.
minigpt4/minigpt4_library.py:306
↓ 2 callersMethodminigpt4_end_chat
Ends a chat. Args: ctx (MiniGPT4Context): Context. n_threads (int, optional): Number of threads to use, if 0
minigpt4/minigpt4_library.py:393
↓ 2 callersFunctionminigpt4_end_chat_image
minigpt4.cpp:2704
↓ 2 callersMethodminigpt4_end_chat_image
Ends a chat with an image. Args: ctx (MiniGPT4Context): Context. n_threads (int, optional): Number of thread
minigpt4/minigpt4_library.py:339
↓ 2 callersFunctionminigpt4_free
minigpt4.cpp:2784
↓ 2 callersMethodminigpt4_free
Frees a context. Args: ctx (MiniGPT4Context): Context.
minigpt4/minigpt4_library.py:460
↓ 2 callersFunctionminigpt4_free_image
minigpt4.cpp:2791
↓ 2 callersMethodminigpt4_free_image
Frees an image. Args: image (MiniGPT4Image): Image.
minigpt4/minigpt4_library.py:470
↓ 2 callersFunctionminigpt4_is_eos
minigpt4.cpp:2774
↓ 2 callersMethodminigpt4_model_load
Loads a model from a file. Args: model_path (str): Path to model file. llm_model_path (str): Path to LLM mod
minigpt4/minigpt4_library.py:242
↓ 2 callersMethodminigpt4_system_prompt
Generates a system prompt. Args: ctx (MiniGPT4Context): Context. n_threads (int, optional): Number of thread
minigpt4/minigpt4_library.py:368
↓ 2 callersFunctionquantize
(lib, src_path, dst_path, quantization)
minigpt4/quantize.py:5
↓ 2 callersMethodreset_chat
Resets the chat.
minigpt4/minigpt4_library.py:659
↓ 2 callersMethodseek
minigpt4.cpp:449
↓ 2 callersMethodtell
minigpt4.cpp:444
↓ 1 callersMethodadd_embedding
minigpt4.cpp:2399
↓ 1 callersMethodadd_tensor
minigpt4.cpp:870
↓ 1 callersMethodadd_tokens
minigpt4.cpp:2365
↓ 1 callersMethodbase_addr
minigpt4.cpp:433
↓ 1 callersMethoddump
minigpt4.cpp:1632
↓ 1 callersMethodencode_image
minigpt4.cpp:2094
↓ 1 callersMethodforward
minigpt4.cpp:1020
↓ 1 callersMethodgenerate
Generates a chat response. Args: message (str): Message. limit (int, optional): Limit. Defaults to 1024.
minigpt4/minigpt4_library.py:609
↓ 1 callersMethodget_file_address
minigpt4.cpp:813
↓ 1 callersMethodget_file_data_type
minigpt4.cpp:1630
↓ 1 callersMethodget_model_context_size
minigpt4.cpp:1612
↓ 1 callersMethodget_model_type
minigpt4.cpp:1614
↓ 1 callersMethodid_to_token
minigpt4.cpp:2485
↓ 1 callersMethodinit
minigpt4.cpp:1770
↓ 1 callersMethodis_eof
minigpt4.cpp:463
↓ 1 callersMethodload_projection
(self, path)
minigpt4/convert.py:239
↓ 1 callersFunctionmain
()
minigpt4/convert.py:245
↓ 1 callersFunctionminigpt4_begin_chat
minigpt4.cpp:2734
↓ 1 callersFunctionminigpt4_begin_chat_image
minigpt4.cpp:2671
↓ 1 callersFunctionminigpt4_encode_image
minigpt4.cpp:2653
↓ 1 callersFunctionminigpt4_end_chat
minigpt4.cpp:2750
↓ 1 callersMethodminigpt4_error_code_to_string
Converts an error code to a string. Args: error_code (int): Error code. Returns: str: Error string.
minigpt4/minigpt4_library.py:490
↓ 1 callersFunctionminigpt4_free_embedding
minigpt4.cpp:2801
↓ 1 callersMethodminigpt4_free_embedding
Frees an embedding. Args: embedding (MiniGPT4Embedding): Embedding.
minigpt4/minigpt4_library.py:480
↓ 1 callersFunctionminigpt4_image_load_from_file
minigpt4.cpp:2576
↓ 1 callersMethodminigpt4_image_load_from_file
Loads an image from a file Args: ctx (MiniGPT4Context): context path (str): path flags (int): fl
minigpt4/minigpt4_library.py:272
↓ 1 callersFunctionminigpt4_model_load
minigpt4.cpp:2543
↓ 1 callersFunctionminigpt4_preprocess_image
minigpt4.cpp:2597
↓ 1 callersMethodminigpt4_preprocess_image
Preprocesses an image Args: ctx (MiniGPT4Context): Context image (MiniGPT4Image): Image flags (i
minigpt4/minigpt4_library.py:289
↓ 1 callersMethodminigpt4_quantize_model
Quantizes a model file. Args: in_path (str): Path to input model file. out_path (str): Path to write output
minigpt4/minigpt4_library.py:503
↓ 1 callersMethodminigpt4_reset_chat
Resets the chat. Args: ctx (MiniGPT4Context): Context.
minigpt4/minigpt4_library.py:422
↓ 1 callersMethodminigpt4_set_verbosity
Sets verbosity. Args: verbosity (int): Verbosity.
minigpt4/minigpt4_library.py:515
↓ 1 callersFunctionminigpt4_system_prompt
minigpt4.cpp:2720
↓ 1 callersMethodread_bytes
minigpt4.cpp:488
↓ 1 callersMethodreset
minigpt4.cpp:2499
↓ 1 callersMethodsample_token
mostly from embd-input
minigpt4.cpp:2425
↓ 1 callersMethodseek_to_alignment
minigpt4.cpp:455
↓ 1 callersMethodset_file_data_type
minigpt4.cpp:1629
↓ 1 callersMethodset_name
minigpt4.cpp:861
↓ 1 callersFunctionstart
(share: bool)
minigpt4/webui.py:64
↓ 1 callersMethodtotal_shape
minigpt4.cpp:769
↓ 1 callersMethodupload_image
Uploads an image. Args: image (Image): Image.
minigpt4/minigpt4_library.py:672
↓ 1 callersFunctionwrite_file
(outfile, minigpt4, ftype_string)
minigpt4/convert.py:146
MethodAs
minigpt4.cpp:262
MethodBuffer
minigpt4.cpp:273
MethodBufferView
minigpt4.cpp:254
MethodLoggingTimer
minigpt4.cpp:301
MethodMMapReader
minigpt4.cpp:430
MethodMMappedFile
minigpt4.cpp:321
MethodTimer
minigpt4.cpp:289
FunctionWriteDump
minigpt4.cpp:520
Method__init__
(self, ptr: ctypes.pointer)
minigpt4/minigpt4_library.py:53
Method__init__
Loads the shared library from specified file. In case of any error, this method will throw an exception. Parameters
minigpt4/minigpt4_library.py:79
Method__init__
Creates a new MiniGPT4ChatBot instance. Args: model_path (str): Path to model file. llm_model_path (str): Pa
minigpt4/minigpt4_library.py:569
Method__init__
(self, pretrained_minigpt4_path, vit_model="eva_clip_g", q_former_model="https://stora
minigpt4/convert.py:186
Method__str__
(self)
minigpt4/minigpt4_library.py:10
Methodadd_pos
minigpt4.cpp:469
Methodadd_strings
minigpt4.cpp:2384
Functionchat
(history, limit: int = 1024, temp: float = 0.8, top_k: int = 40, top_p: float = 0.9, repeat_penalty: float = 1
minigpt4/webui.py:27
Functionclear_state
(history, chat_message, image)
minigpt4/webui.py:48
Methodcurrent_addr
minigpt4.cpp:439
Methodelapsed_us
minigpt4.cpp:290
Methodfeed_forward_chunk_query
minigpt4.cpp:1345
Methodforward
minigpt4.cpp:1007
next →1–100 of 138, ranked by callers