Edit model card

tinybiggames/Phi-3-mini-4k-instruct-Q4_K_M-GGUF

This model was converted to GGUF format from microsoft/Phi-3-mini-4k-instruct using llama.cpp via the ggml.ai's GGUF-my-repo space. Refer to the original model card for more details on the model.

Use with tinyBigGAMES's LMEngine Inference Library

How to configure LMEngine:

Config_Init(
 'C:/LLM/gguf', // path to model files
 -1             // number of GPU layer, -1 to use all available layers
);

How to define model:

Model_Define('phi-3-mini-4k-instruct.Q4_K_M.gguf',
  'phi-3-mini-4k-instruct.Q4_K_M', 4000,
  '<|{role}|>{content}<|end|>',
  '<|assistant|>');

How to add a message:

Message_Add(
  ROLE_USER,    // role
 'What is AI?'  // content
);

{role} - will be substituted with the message "role"
{content} - will be substituted with the message "content"

How to do inference:

var
  LTokenOutputSpeed: Single;
  LInputTokens: Int32;
  LOutputTokens: Int32;
  LTotalTokens: Int32;
  
if Inference_Run('phi-3-mini-4k-instruct.Q4_K_M', 1024) then
  begin
    Inference_GetUsage(nil, @LTokenOutputSpeed, @LInputTokens, @LOutputTokens,
      @LTotalTokens);
    Console_PrintLn('', FG_WHITE);
    Console_PrintLn('Tokens :: Input: %d, Output: %d, Total: %d, Speed: %3.1f t/s',
      FG_BRIGHTYELLOW, LInputTokens, LOutputTokens, LTotalTokens, LTokenOutputSpeed);
  end
else
  begin
    Console_PrintLn('', FG_WHITE);
    Console_PrintLn('Error: %s', FG_RED, Error_Get());
  end;
Downloads last month
52
GGUF
Model size
3.82B params
Architecture
phi3
Inference Examples
Unable to determine this model's library. Check the docs .

Space using tinybiggames/Phi-3-mini-4k-instruct-Q4_K_M-GGUF 1