@realtimex/node-llama-cpp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/dist/ChatWrapper.d.ts +27 -0
- package/dist/ChatWrapper.js +233 -0
- package/dist/ChatWrapper.js.map +1 -0
- package/dist/apiDocsIndex.d.ts +1 -0
- package/dist/apiDocsIndex.js +7 -0
- package/dist/apiDocsIndex.js.map +1 -0
- package/dist/bindings/AddonTypes.d.ts +203 -0
- package/dist/bindings/AddonTypes.js +2 -0
- package/dist/bindings/AddonTypes.js.map +1 -0
- package/dist/bindings/Llama.d.ts +104 -0
- package/dist/bindings/Llama.js +570 -0
- package/dist/bindings/Llama.js.map +1 -0
- package/dist/bindings/consts.d.ts +2 -0
- package/dist/bindings/consts.js +13 -0
- package/dist/bindings/consts.js.map +1 -0
- package/dist/bindings/getLlama.d.ts +297 -0
- package/dist/bindings/getLlama.js +569 -0
- package/dist/bindings/getLlama.js.map +1 -0
- package/dist/bindings/types.d.ts +72 -0
- package/dist/bindings/types.js +105 -0
- package/dist/bindings/types.js.map +1 -0
- package/dist/bindings/utils/MemoryOrchestrator.d.ts +23 -0
- package/dist/bindings/utils/MemoryOrchestrator.js +50 -0
- package/dist/bindings/utils/MemoryOrchestrator.js.map +1 -0
- package/dist/bindings/utils/NoBinaryFoundError.d.ts +2 -0
- package/dist/bindings/utils/NoBinaryFoundError.js +7 -0
- package/dist/bindings/utils/NoBinaryFoundError.js.map +1 -0
- package/dist/bindings/utils/asyncEvery.d.ts +5 -0
- package/dist/bindings/utils/asyncEvery.js +15 -0
- package/dist/bindings/utils/asyncEvery.js.map +1 -0
- package/dist/bindings/utils/asyncSome.d.ts +5 -0
- package/dist/bindings/utils/asyncSome.js +29 -0
- package/dist/bindings/utils/asyncSome.js.map +1 -0
- package/dist/bindings/utils/binariesGithubRelease.d.ts +6 -0
- package/dist/bindings/utils/binariesGithubRelease.js +15 -0
- package/dist/bindings/utils/binariesGithubRelease.js.map +1 -0
- package/dist/bindings/utils/clearAllLocalBuilds.d.ts +1 -0
- package/dist/bindings/utils/clearAllLocalBuilds.js +47 -0
- package/dist/bindings/utils/clearAllLocalBuilds.js.map +1 -0
- package/dist/bindings/utils/cloneLlamaCppRepo.d.ts +11 -0
- package/dist/bindings/utils/cloneLlamaCppRepo.js +166 -0
- package/dist/bindings/utils/cloneLlamaCppRepo.js.map +1 -0
- package/dist/bindings/utils/compileLLamaCpp.d.ts +22 -0
- package/dist/bindings/utils/compileLLamaCpp.js +526 -0
- package/dist/bindings/utils/compileLLamaCpp.js.map +1 -0
- package/dist/bindings/utils/detectAvailableComputeLayers.d.ts +18 -0
- package/dist/bindings/utils/detectAvailableComputeLayers.js +311 -0
- package/dist/bindings/utils/detectAvailableComputeLayers.js.map +1 -0
- package/dist/bindings/utils/detectBuildTools.d.ts +14 -0
- package/dist/bindings/utils/detectBuildTools.js +149 -0
- package/dist/bindings/utils/detectBuildTools.js.map +1 -0
- package/dist/bindings/utils/detectGlibc.d.ts +4 -0
- package/dist/bindings/utils/detectGlibc.js +74 -0
- package/dist/bindings/utils/detectGlibc.js.map +1 -0
- package/dist/bindings/utils/disposeBeforeExit.d.ts +8 -0
- package/dist/bindings/utils/disposeBeforeExit.js +36 -0
- package/dist/bindings/utils/disposeBeforeExit.js.map +1 -0
- package/dist/bindings/utils/getBestComputeLayersAvailable.d.ts +9 -0
- package/dist/bindings/utils/getBestComputeLayersAvailable.js +29 -0
- package/dist/bindings/utils/getBestComputeLayersAvailable.js.map +1 -0
- package/dist/bindings/utils/getBuildFolderNameForBuildOptions.d.ts +6 -0
- package/dist/bindings/utils/getBuildFolderNameForBuildOptions.js +105 -0
- package/dist/bindings/utils/getBuildFolderNameForBuildOptions.js.map +1 -0
- package/dist/bindings/utils/getCanUsePrebuiltBinaries.d.ts +1 -0
- package/dist/bindings/utils/getCanUsePrebuiltBinaries.js +8 -0
- package/dist/bindings/utils/getCanUsePrebuiltBinaries.js.map +1 -0
- package/dist/bindings/utils/getExampleUsageCodeOfGetLlama.d.ts +2 -0
- package/dist/bindings/utils/getExampleUsageCodeOfGetLlama.js +21 -0
- package/dist/bindings/utils/getExampleUsageCodeOfGetLlama.js.map +1 -0
- package/dist/bindings/utils/getGpuTypesToUseForOption.d.ts +12 -0
- package/dist/bindings/utils/getGpuTypesToUseForOption.js +39 -0
- package/dist/bindings/utils/getGpuTypesToUseForOption.js.map +1 -0
- package/dist/bindings/utils/getLinuxDistroInfo.d.ts +9 -0
- package/dist/bindings/utils/getLinuxDistroInfo.js +46 -0
- package/dist/bindings/utils/getLinuxDistroInfo.js.map +1 -0
- package/dist/bindings/utils/getLlamaGpuTypes.d.ts +13 -0
- package/dist/bindings/utils/getLlamaGpuTypes.js +36 -0
- package/dist/bindings/utils/getLlamaGpuTypes.js.map +1 -0
- package/dist/bindings/utils/getLlamaWithoutBackend.d.ts +5 -0
- package/dist/bindings/utils/getLlamaWithoutBackend.js +40 -0
- package/dist/bindings/utils/getLlamaWithoutBackend.js.map +1 -0
- package/dist/bindings/utils/getPlatform.d.ts +2 -0
- package/dist/bindings/utils/getPlatform.js +15 -0
- package/dist/bindings/utils/getPlatform.js.map +1 -0
- package/dist/bindings/utils/getPlatformInfo.d.ts +5 -0
- package/dist/bindings/utils/getPlatformInfo.js +28 -0
- package/dist/bindings/utils/getPlatformInfo.js.map +1 -0
- package/dist/bindings/utils/hasBuildingFromSourceDependenciesInstalled.d.ts +3 -0
- package/dist/bindings/utils/hasBuildingFromSourceDependenciesInstalled.js +27 -0
- package/dist/bindings/utils/hasBuildingFromSourceDependenciesInstalled.js.map +1 -0
- package/dist/bindings/utils/hasFileInPath.d.ts +2 -0
- package/dist/bindings/utils/hasFileInPath.js +34 -0
- package/dist/bindings/utils/hasFileInPath.js.map +1 -0
- package/dist/bindings/utils/lastBuildInfo.d.ts +6 -0
- package/dist/bindings/utils/lastBuildInfo.js +17 -0
- package/dist/bindings/utils/lastBuildInfo.js.map +1 -0
- package/dist/bindings/utils/logBinaryUsageExampleToConsole.d.ts +2 -0
- package/dist/bindings/utils/logBinaryUsageExampleToConsole.js +22 -0
- package/dist/bindings/utils/logBinaryUsageExampleToConsole.js.map +1 -0
- package/dist/bindings/utils/logDistroInstallInstruction.d.ts +14 -0
- package/dist/bindings/utils/logDistroInstallInstruction.js +48 -0
- package/dist/bindings/utils/logDistroInstallInstruction.js.map +1 -0
- package/dist/bindings/utils/resolveActualBindingBinaryPath.d.ts +1 -0
- package/dist/bindings/utils/resolveActualBindingBinaryPath.js +18 -0
- package/dist/bindings/utils/resolveActualBindingBinaryPath.js.map +1 -0
- package/dist/bindings/utils/resolveCustomCmakeOptions.d.ts +1 -0
- package/dist/bindings/utils/resolveCustomCmakeOptions.js +43 -0
- package/dist/bindings/utils/resolveCustomCmakeOptions.js.map +1 -0
- package/dist/bindings/utils/testBindingBinary.d.ts +2 -0
- package/dist/bindings/utils/testBindingBinary.js +269 -0
- package/dist/bindings/utils/testBindingBinary.js.map +1 -0
- package/dist/bindings/utils/testCmakeBinary.d.ts +5 -0
- package/dist/bindings/utils/testCmakeBinary.js +32 -0
- package/dist/bindings/utils/testCmakeBinary.js.map +1 -0
- package/dist/chatWrappers/AlpacaChatWrapper.d.ts +17 -0
- package/dist/chatWrappers/AlpacaChatWrapper.js +33 -0
- package/dist/chatWrappers/AlpacaChatWrapper.js.map +1 -0
- package/dist/chatWrappers/ChatMLChatWrapper.d.ts +6 -0
- package/dist/chatWrappers/ChatMLChatWrapper.js +85 -0
- package/dist/chatWrappers/ChatMLChatWrapper.js.map +1 -0
- package/dist/chatWrappers/DeepSeekChatWrapper.d.ts +37 -0
- package/dist/chatWrappers/DeepSeekChatWrapper.js +294 -0
- package/dist/chatWrappers/DeepSeekChatWrapper.js.map +1 -0
- package/dist/chatWrappers/EmptyChatWrapper.d.ts +4 -0
- package/dist/chatWrappers/EmptyChatWrapper.js +5 -0
- package/dist/chatWrappers/EmptyChatWrapper.js.map +1 -0
- package/dist/chatWrappers/FalconChatWrapper.d.ts +19 -0
- package/dist/chatWrappers/FalconChatWrapper.js +126 -0
- package/dist/chatWrappers/FalconChatWrapper.js.map +1 -0
- package/dist/chatWrappers/FunctionaryChatWrapper.d.ts +17 -0
- package/dist/chatWrappers/FunctionaryChatWrapper.js +622 -0
- package/dist/chatWrappers/FunctionaryChatWrapper.js.map +1 -0
- package/dist/chatWrappers/GemmaChatWrapper.d.ts +7 -0
- package/dist/chatWrappers/GemmaChatWrapper.js +96 -0
- package/dist/chatWrappers/GemmaChatWrapper.js.map +1 -0
- package/dist/chatWrappers/GeneralChatWrapper.d.ts +19 -0
- package/dist/chatWrappers/GeneralChatWrapper.js +140 -0
- package/dist/chatWrappers/GeneralChatWrapper.js.map +1 -0
- package/dist/chatWrappers/HarmonyChatWrapper.d.ts +78 -0
- package/dist/chatWrappers/HarmonyChatWrapper.js +539 -0
- package/dist/chatWrappers/HarmonyChatWrapper.js.map +1 -0
- package/dist/chatWrappers/Llama2ChatWrapper.d.ts +12 -0
- package/dist/chatWrappers/Llama2ChatWrapper.js +95 -0
- package/dist/chatWrappers/Llama2ChatWrapper.js.map +1 -0
- package/dist/chatWrappers/Llama3ChatWrapper.d.ts +16 -0
- package/dist/chatWrappers/Llama3ChatWrapper.js +173 -0
- package/dist/chatWrappers/Llama3ChatWrapper.js.map +1 -0
- package/dist/chatWrappers/Llama3_1ChatWrapper.d.ts +32 -0
- package/dist/chatWrappers/Llama3_1ChatWrapper.js +290 -0
- package/dist/chatWrappers/Llama3_1ChatWrapper.js.map +1 -0
- package/dist/chatWrappers/Llama3_2LightweightChatWrapper.d.ts +35 -0
- package/dist/chatWrappers/Llama3_2LightweightChatWrapper.js +264 -0
- package/dist/chatWrappers/Llama3_2LightweightChatWrapper.js.map +1 -0
- package/dist/chatWrappers/MistralChatWrapper.d.ts +16 -0
- package/dist/chatWrappers/MistralChatWrapper.js +180 -0
- package/dist/chatWrappers/MistralChatWrapper.js.map +1 -0
- package/dist/chatWrappers/QwenChatWrapper.d.ts +36 -0
- package/dist/chatWrappers/QwenChatWrapper.js +344 -0
- package/dist/chatWrappers/QwenChatWrapper.js.map +1 -0
- package/dist/chatWrappers/SeedChatWrapper.d.ts +25 -0
- package/dist/chatWrappers/SeedChatWrapper.js +183 -0
- package/dist/chatWrappers/SeedChatWrapper.js.map +1 -0
- package/dist/chatWrappers/generic/JinjaTemplateChatWrapper.d.ts +138 -0
- package/dist/chatWrappers/generic/JinjaTemplateChatWrapper.js +665 -0
- package/dist/chatWrappers/generic/JinjaTemplateChatWrapper.js.map +1 -0
- package/dist/chatWrappers/generic/TemplateChatWrapper.d.ts +76 -0
- package/dist/chatWrappers/generic/TemplateChatWrapper.js +212 -0
- package/dist/chatWrappers/generic/TemplateChatWrapper.js.map +1 -0
- package/dist/chatWrappers/generic/utils/UniqueIdGenerator.d.ts +7 -0
- package/dist/chatWrappers/generic/utils/UniqueIdGenerator.js +30 -0
- package/dist/chatWrappers/generic/utils/UniqueIdGenerator.js.map +1 -0
- package/dist/chatWrappers/generic/utils/chatHistoryFunctionCallMessageTemplate.d.ts +24 -0
- package/dist/chatWrappers/generic/utils/chatHistoryFunctionCallMessageTemplate.js +45 -0
- package/dist/chatWrappers/generic/utils/chatHistoryFunctionCallMessageTemplate.js.map +1 -0
- package/dist/chatWrappers/generic/utils/extractFunctionCallSettingsFromJinjaTemplate.d.ts +25 -0
- package/dist/chatWrappers/generic/utils/extractFunctionCallSettingsFromJinjaTemplate.js +690 -0
- package/dist/chatWrappers/generic/utils/extractFunctionCallSettingsFromJinjaTemplate.js.map +1 -0
- package/dist/chatWrappers/generic/utils/extractSegmentSettingsFromTokenizerAndChatTemplate.d.ts +2 -0
- package/dist/chatWrappers/generic/utils/extractSegmentSettingsFromTokenizerAndChatTemplate.js +66 -0
- package/dist/chatWrappers/generic/utils/extractSegmentSettingsFromTokenizerAndChatTemplate.js.map +1 -0
- package/dist/chatWrappers/generic/utils/getFirstValidResult.d.ts +6 -0
- package/dist/chatWrappers/generic/utils/getFirstValidResult.js +19 -0
- package/dist/chatWrappers/generic/utils/getFirstValidResult.js.map +1 -0
- package/dist/chatWrappers/generic/utils/squashChatHistoryItems.d.ts +2 -0
- package/dist/chatWrappers/generic/utils/squashChatHistoryItems.js +35 -0
- package/dist/chatWrappers/generic/utils/squashChatHistoryItems.js.map +1 -0
- package/dist/chatWrappers/generic/utils/templateSegmentOptionsToChatWrapperSettings.d.ts +22 -0
- package/dist/chatWrappers/generic/utils/templateSegmentOptionsToChatWrapperSettings.js +28 -0
- package/dist/chatWrappers/generic/utils/templateSegmentOptionsToChatWrapperSettings.js.map +1 -0
- package/dist/chatWrappers/utils/ChatModelFunctionsDocumentationGenerator.d.ts +76 -0
- package/dist/chatWrappers/utils/ChatModelFunctionsDocumentationGenerator.js +177 -0
- package/dist/chatWrappers/utils/ChatModelFunctionsDocumentationGenerator.js.map +1 -0
- package/dist/chatWrappers/utils/chunkChatItems.d.ts +10 -0
- package/dist/chatWrappers/utils/chunkChatItems.js +44 -0
- package/dist/chatWrappers/utils/chunkChatItems.js.map +1 -0
- package/dist/chatWrappers/utils/getModelLinageNames.d.ts +2 -0
- package/dist/chatWrappers/utils/getModelLinageNames.js +18 -0
- package/dist/chatWrappers/utils/getModelLinageNames.js.map +1 -0
- package/dist/chatWrappers/utils/isJinjaTemplateEquivalentToSpecializedChatWrapper.d.ts +4 -0
- package/dist/chatWrappers/utils/isJinjaTemplateEquivalentToSpecializedChatWrapper.js +394 -0
- package/dist/chatWrappers/utils/isJinjaTemplateEquivalentToSpecializedChatWrapper.js.map +1 -0
- package/dist/chatWrappers/utils/isLlama3_2LightweightModel.d.ts +2 -0
- package/dist/chatWrappers/utils/isLlama3_2LightweightModel.js +9 -0
- package/dist/chatWrappers/utils/isLlama3_2LightweightModel.js.map +1 -0
- package/dist/chatWrappers/utils/jsonDumps.d.ts +7 -0
- package/dist/chatWrappers/utils/jsonDumps.js +18 -0
- package/dist/chatWrappers/utils/jsonDumps.js.map +1 -0
- package/dist/chatWrappers/utils/resolveChatWrapper.d.ts +148 -0
- package/dist/chatWrappers/utils/resolveChatWrapper.js +325 -0
- package/dist/chatWrappers/utils/resolveChatWrapper.js.map +1 -0
- package/dist/cli/cli.d.ts +2 -0
- package/dist/cli/cli.js +45 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/commands/ChatCommand.d.ts +59 -0
- package/dist/cli/commands/ChatCommand.js +856 -0
- package/dist/cli/commands/ChatCommand.js.map +1 -0
- package/dist/cli/commands/CompleteCommand.d.ts +47 -0
- package/dist/cli/commands/CompleteCommand.js +658 -0
- package/dist/cli/commands/CompleteCommand.js.map +1 -0
- package/dist/cli/commands/DebugCommand.d.ts +7 -0
- package/dist/cli/commands/DebugCommand.js +55 -0
- package/dist/cli/commands/DebugCommand.js.map +1 -0
- package/dist/cli/commands/InfillCommand.d.ts +49 -0
- package/dist/cli/commands/InfillCommand.js +693 -0
- package/dist/cli/commands/InfillCommand.js.map +1 -0
- package/dist/cli/commands/InitCommand.d.ts +12 -0
- package/dist/cli/commands/InitCommand.js +230 -0
- package/dist/cli/commands/InitCommand.js.map +1 -0
- package/dist/cli/commands/OnPostInstallCommand.d.ts +4 -0
- package/dist/cli/commands/OnPostInstallCommand.js +62 -0
- package/dist/cli/commands/OnPostInstallCommand.js.map +1 -0
- package/dist/cli/commands/PullCommand.d.ts +13 -0
- package/dist/cli/commands/PullCommand.js +158 -0
- package/dist/cli/commands/PullCommand.js.map +1 -0
- package/dist/cli/commands/inspect/InspectCommand.d.ts +4 -0
- package/dist/cli/commands/inspect/InspectCommand.js +21 -0
- package/dist/cli/commands/inspect/InspectCommand.js.map +1 -0
- package/dist/cli/commands/inspect/commands/InspectEstimateCommand.d.ts +17 -0
- package/dist/cli/commands/inspect/commands/InspectEstimateCommand.js +275 -0
- package/dist/cli/commands/inspect/commands/InspectEstimateCommand.js.map +1 -0
- package/dist/cli/commands/inspect/commands/InspectGgufCommand.d.ts +13 -0
- package/dist/cli/commands/inspect/commands/InspectGgufCommand.js +230 -0
- package/dist/cli/commands/inspect/commands/InspectGgufCommand.js.map +1 -0
- package/dist/cli/commands/inspect/commands/InspectGpuCommand.d.ts +4 -0
- package/dist/cli/commands/inspect/commands/InspectGpuCommand.js +296 -0
- package/dist/cli/commands/inspect/commands/InspectGpuCommand.js.map +1 -0
- package/dist/cli/commands/inspect/commands/InspectMeasureCommand.d.ts +26 -0
- package/dist/cli/commands/inspect/commands/InspectMeasureCommand.js +869 -0
- package/dist/cli/commands/inspect/commands/InspectMeasureCommand.js.map +1 -0
- package/dist/cli/commands/source/SourceCommand.d.ts +4 -0
- package/dist/cli/commands/source/SourceCommand.js +19 -0
- package/dist/cli/commands/source/SourceCommand.js.map +1 -0
- package/dist/cli/commands/source/commands/BuildCommand.d.ts +16 -0
- package/dist/cli/commands/source/commands/BuildCommand.js +148 -0
- package/dist/cli/commands/source/commands/BuildCommand.js.map +1 -0
- package/dist/cli/commands/source/commands/ClearCommand.d.ts +7 -0
- package/dist/cli/commands/source/commands/ClearCommand.js +54 -0
- package/dist/cli/commands/source/commands/ClearCommand.js.map +1 -0
- package/dist/cli/commands/source/commands/DownloadCommand.d.ts +16 -0
- package/dist/cli/commands/source/commands/DownloadCommand.js +219 -0
- package/dist/cli/commands/source/commands/DownloadCommand.js.map +1 -0
- package/dist/cli/projectTemplates.d.ts +7 -0
- package/dist/cli/projectTemplates.js +10 -0
- package/dist/cli/projectTemplates.js.map +1 -0
- package/dist/cli/recommendedModels.d.ts +2 -0
- package/dist/cli/recommendedModels.js +428 -0
- package/dist/cli/recommendedModels.js.map +1 -0
- package/dist/cli/startCreateCli.d.ts +2 -0
- package/dist/cli/startCreateCli.js +26 -0
- package/dist/cli/startCreateCli.js.map +1 -0
- package/dist/cli/utils/ConsoleInteraction.d.ts +22 -0
- package/dist/cli/utils/ConsoleInteraction.js +122 -0
- package/dist/cli/utils/ConsoleInteraction.js.map +1 -0
- package/dist/cli/utils/ConsoleTable.d.ts +24 -0
- package/dist/cli/utils/ConsoleTable.js +90 -0
- package/dist/cli/utils/ConsoleTable.js.map +1 -0
- package/dist/cli/utils/basicChooseFromListConsoleInteraction.d.ts +13 -0
- package/dist/cli/utils/basicChooseFromListConsoleInteraction.js +111 -0
- package/dist/cli/utils/basicChooseFromListConsoleInteraction.js.map +1 -0
- package/dist/cli/utils/consolePromptQuestion.d.ts +6 -0
- package/dist/cli/utils/consolePromptQuestion.js +81 -0
- package/dist/cli/utils/consolePromptQuestion.js.map +1 -0
- package/dist/cli/utils/getReadablePath.d.ts +1 -0
- package/dist/cli/utils/getReadablePath.js +14 -0
- package/dist/cli/utils/getReadablePath.js.map +1 -0
- package/dist/cli/utils/interactivelyAskForModel.d.ts +13 -0
- package/dist/cli/utils/interactivelyAskForModel.js +485 -0
- package/dist/cli/utils/interactivelyAskForModel.js.map +1 -0
- package/dist/cli/utils/isRunningUnderRosetta.d.ts +1 -0
- package/dist/cli/utils/isRunningUnderRosetta.js +20 -0
- package/dist/cli/utils/isRunningUnderRosetta.js.map +1 -0
- package/dist/cli/utils/logUsedGpuTypeOption.d.ts +2 -0
- package/dist/cli/utils/logUsedGpuTypeOption.js +9 -0
- package/dist/cli/utils/logUsedGpuTypeOption.js.map +1 -0
- package/dist/cli/utils/packageJsonConfig.d.ts +6 -0
- package/dist/cli/utils/packageJsonConfig.js +51 -0
- package/dist/cli/utils/packageJsonConfig.js.map +1 -0
- package/dist/cli/utils/packageManager.d.ts +1 -0
- package/dist/cli/utils/packageManager.js +15 -0
- package/dist/cli/utils/packageManager.js.map +1 -0
- package/dist/cli/utils/parseXtcArg.d.ts +5 -0
- package/dist/cli/utils/parseXtcArg.js +16 -0
- package/dist/cli/utils/parseXtcArg.js.map +1 -0
- package/dist/cli/utils/printCommonInfoLines.d.ts +12 -0
- package/dist/cli/utils/printCommonInfoLines.js +163 -0
- package/dist/cli/utils/printCommonInfoLines.js.map +1 -0
- package/dist/cli/utils/printInfoLine.d.ts +12 -0
- package/dist/cli/utils/printInfoLine.js +54 -0
- package/dist/cli/utils/printInfoLine.js.map +1 -0
- package/dist/cli/utils/printModelDestination.d.ts +2 -0
- package/dist/cli/utils/printModelDestination.js +11 -0
- package/dist/cli/utils/printModelDestination.js.map +1 -0
- package/dist/cli/utils/projectTemplates.d.ts +19 -0
- package/dist/cli/utils/projectTemplates.js +47 -0
- package/dist/cli/utils/projectTemplates.js.map +1 -0
- package/dist/cli/utils/renderModelCompatibilityPercentageWithColors.d.ts +6 -0
- package/dist/cli/utils/renderModelCompatibilityPercentageWithColors.js +14 -0
- package/dist/cli/utils/renderModelCompatibilityPercentageWithColors.js.map +1 -0
- package/dist/cli/utils/resolveCommandGgufPath.d.ts +19 -0
- package/dist/cli/utils/resolveCommandGgufPath.js +123 -0
- package/dist/cli/utils/resolveCommandGgufPath.js.map +1 -0
- package/dist/cli/utils/resolveHeaderFlag.d.ts +1 -0
- package/dist/cli/utils/resolveHeaderFlag.js +21 -0
- package/dist/cli/utils/resolveHeaderFlag.js.map +1 -0
- package/dist/cli/utils/resolveModelRecommendationFileOptions.d.ts +14 -0
- package/dist/cli/utils/resolveModelRecommendationFileOptions.js +12 -0
- package/dist/cli/utils/resolveModelRecommendationFileOptions.js.map +1 -0
- package/dist/cli/utils/resolveNpmrcConfig.d.ts +18 -0
- package/dist/cli/utils/resolveNpmrcConfig.js +129 -0
- package/dist/cli/utils/resolveNpmrcConfig.js.map +1 -0
- package/dist/cli/utils/splitAnsiToLines.d.ts +1 -0
- package/dist/cli/utils/splitAnsiToLines.js +32 -0
- package/dist/cli/utils/splitAnsiToLines.js.map +1 -0
- package/dist/cli/utils/toBytes.d.ts +1 -0
- package/dist/cli/utils/toBytes.js +5 -0
- package/dist/cli/utils/toBytes.js.map +1 -0
- package/dist/cli/utils/withCliCommandDescriptionDocsUrl.d.ts +2 -0
- package/dist/cli/utils/withCliCommandDescriptionDocsUrl.js +23 -0
- package/dist/cli/utils/withCliCommandDescriptionDocsUrl.js.map +1 -0
- package/dist/commands.d.ts +6 -0
- package/dist/commands.js +9 -0
- package/dist/commands.js.map +1 -0
- package/dist/config.d.ts +79 -0
- package/dist/config.js +127 -0
- package/dist/config.js.map +1 -0
- package/dist/consts.d.ts +4 -0
- package/dist/consts.js +11 -0
- package/dist/consts.js.map +1 -0
- package/dist/evaluator/LlamaChat/LlamaChat.d.ts +500 -0
- package/dist/evaluator/LlamaChat/LlamaChat.js +2696 -0
- package/dist/evaluator/LlamaChat/LlamaChat.js.map +1 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallNameGrammar.d.ts +11 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallNameGrammar.js +55 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallNameGrammar.js.map +1 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallParamsGrammar.d.ts +16 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallParamsGrammar.js +45 -0
- package/dist/evaluator/LlamaChat/utils/FunctionCallParamsGrammar.js.map +1 -0
- package/dist/evaluator/LlamaChat/utils/LlamaFunctionCallValidationError.d.ts +8 -0
- package/dist/evaluator/LlamaChat/utils/LlamaFunctionCallValidationError.js +12 -0
- package/dist/evaluator/LlamaChat/utils/LlamaFunctionCallValidationError.js.map +1 -0
- package/dist/evaluator/LlamaChat/utils/contextShiftStrategies/eraseFirstResponseAndKeepFirstSystemChatContextShiftStrategy.d.ts +16 -0
- package/dist/evaluator/LlamaChat/utils/contextShiftStrategies/eraseFirstResponseAndKeepFirstSystemChatContextShiftStrategy.js +260 -0
- package/dist/evaluator/LlamaChat/utils/contextShiftStrategies/eraseFirstResponseAndKeepFirstSystemChatContextShiftStrategy.js.map +1 -0
- package/dist/evaluator/LlamaChatSession/LlamaChatSession.d.ts +520 -0
- package/dist/evaluator/LlamaChatSession/LlamaChatSession.js +628 -0
- package/dist/evaluator/LlamaChatSession/LlamaChatSession.js.map +1 -0
- package/dist/evaluator/LlamaChatSession/utils/LlamaChatSessionPromptCompletionEngine.d.ts +45 -0
- package/dist/evaluator/LlamaChatSession/utils/LlamaChatSessionPromptCompletionEngine.js +191 -0
- package/dist/evaluator/LlamaChatSession/utils/LlamaChatSessionPromptCompletionEngine.js.map +1 -0
- package/dist/evaluator/LlamaChatSession/utils/defineChatSessionFunction.d.ts +15 -0
- package/dist/evaluator/LlamaChatSession/utils/defineChatSessionFunction.js +16 -0
- package/dist/evaluator/LlamaChatSession/utils/defineChatSessionFunction.js.map +1 -0
- package/dist/evaluator/LlamaCompletion.d.ts +219 -0
- package/dist/evaluator/LlamaCompletion.js +498 -0
- package/dist/evaluator/LlamaCompletion.js.map +1 -0
- package/dist/evaluator/LlamaContext/LlamaContext.d.ts +336 -0
- package/dist/evaluator/LlamaContext/LlamaContext.js +1919 -0
- package/dist/evaluator/LlamaContext/LlamaContext.js.map +1 -0
- package/dist/evaluator/LlamaContext/LlamaContextSequenceCheckpoints.d.ts +27 -0
- package/dist/evaluator/LlamaContext/LlamaContextSequenceCheckpoints.js +130 -0
- package/dist/evaluator/LlamaContext/LlamaContextSequenceCheckpoints.js.map +1 -0
- package/dist/evaluator/LlamaContext/LlamaSampler.d.ts +1 -0
- package/dist/evaluator/LlamaContext/LlamaSampler.js +39 -0
- package/dist/evaluator/LlamaContext/LlamaSampler.js.map +1 -0
- package/dist/evaluator/LlamaContext/TokenPredictor.d.ts +55 -0
- package/dist/evaluator/LlamaContext/TokenPredictor.js +20 -0
- package/dist/evaluator/LlamaContext/TokenPredictor.js.map +1 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/DraftSequenceTokenPredictor.d.ts +56 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/DraftSequenceTokenPredictor.js +266 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/DraftSequenceTokenPredictor.js.map +1 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/InputLookupTokenPredictor.d.ts +58 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/InputLookupTokenPredictor.js +138 -0
- package/dist/evaluator/LlamaContext/tokenPredictors/InputLookupTokenPredictor.js.map +1 -0
- package/dist/evaluator/LlamaContext/types.d.ts +602 -0
- package/dist/evaluator/LlamaContext/types.js +2 -0
- package/dist/evaluator/LlamaContext/types.js.map +1 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/firstInFirstOutStrategy.d.ts +5 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/firstInFirstOutStrategy.js +16 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/firstInFirstOutStrategy.js.map +1 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/maximumParallelismStrategy.d.ts +5 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/maximumParallelismStrategy.js +42 -0
- package/dist/evaluator/LlamaContext/utils/batchItemsPrioritizationStrategies/maximumParallelismStrategy.js.map +1 -0
- package/dist/evaluator/LlamaContext/utils/padSafeContextSize.d.ts +1 -0
- package/dist/evaluator/LlamaContext/utils/padSafeContextSize.js +18 -0
- package/dist/evaluator/LlamaContext/utils/padSafeContextSize.js.map +1 -0
- package/dist/evaluator/LlamaContext/utils/resolveBatchItemsPrioritizationStrategy.d.ts +2 -0
- package/dist/evaluator/LlamaContext/utils/resolveBatchItemsPrioritizationStrategy.js +13 -0
- package/dist/evaluator/LlamaContext/utils/resolveBatchItemsPrioritizationStrategy.js.map +1 -0
- package/dist/evaluator/LlamaEmbedding.d.ts +21 -0
- package/dist/evaluator/LlamaEmbedding.js +53 -0
- package/dist/evaluator/LlamaEmbedding.js.map +1 -0
- package/dist/evaluator/LlamaEmbeddingContext.d.ts +52 -0
- package/dist/evaluator/LlamaEmbeddingContext.js +86 -0
- package/dist/evaluator/LlamaEmbeddingContext.js.map +1 -0
- package/dist/evaluator/LlamaGrammar.d.ts +39 -0
- package/dist/evaluator/LlamaGrammar.js +72 -0
- package/dist/evaluator/LlamaGrammar.js.map +1 -0
- package/dist/evaluator/LlamaGrammarEvaluationState.d.ts +19 -0
- package/dist/evaluator/LlamaGrammarEvaluationState.js +29 -0
- package/dist/evaluator/LlamaGrammarEvaluationState.js.map +1 -0
- package/dist/evaluator/LlamaJsonSchemaGrammar.d.ts +17 -0
- package/dist/evaluator/LlamaJsonSchemaGrammar.js +35 -0
- package/dist/evaluator/LlamaJsonSchemaGrammar.js.map +1 -0
- package/dist/evaluator/LlamaModel/LlamaModel.d.ts +344 -0
- package/dist/evaluator/LlamaModel/LlamaModel.js +853 -0
- package/dist/evaluator/LlamaModel/LlamaModel.js.map +1 -0
- package/dist/evaluator/LlamaModel/utils/TokenAttributes.d.ts +29 -0
- package/dist/evaluator/LlamaModel/utils/TokenAttributes.js +65 -0
- package/dist/evaluator/LlamaModel/utils/TokenAttributes.js.map +1 -0
- package/dist/evaluator/LlamaRankingContext.d.ts +91 -0
- package/dist/evaluator/LlamaRankingContext.js +178 -0
- package/dist/evaluator/LlamaRankingContext.js.map +1 -0
- package/dist/evaluator/TokenBias.d.ts +37 -0
- package/dist/evaluator/TokenBias.js +68 -0
- package/dist/evaluator/TokenBias.js.map +1 -0
- package/dist/evaluator/TokenMeter.d.ts +45 -0
- package/dist/evaluator/TokenMeter.js +74 -0
- package/dist/evaluator/TokenMeter.js.map +1 -0
- package/dist/evaluator/utils/chunkDocument.d.ts +86 -0
- package/dist/evaluator/utils/chunkDocument.js +212 -0
- package/dist/evaluator/utils/chunkDocument.js.map +1 -0
- package/dist/gguf/consts.d.ts +4 -0
- package/dist/gguf/consts.js +12 -0
- package/dist/gguf/consts.js.map +1 -0
- package/dist/gguf/errors/InvalidGgufMagicError.d.ts +3 -0
- package/dist/gguf/errors/InvalidGgufMagicError.js +6 -0
- package/dist/gguf/errors/InvalidGgufMagicError.js.map +1 -0
- package/dist/gguf/errors/UnsupportedGgufValueTypeError.d.ts +4 -0
- package/dist/gguf/errors/UnsupportedGgufValueTypeError.js +9 -0
- package/dist/gguf/errors/UnsupportedGgufValueTypeError.js.map +1 -0
- package/dist/gguf/fileReaders/GgufFileReader.d.ts +36 -0
- package/dist/gguf/fileReaders/GgufFileReader.js +106 -0
- package/dist/gguf/fileReaders/GgufFileReader.js.map +1 -0
- package/dist/gguf/fileReaders/GgufFsFileReader.d.ts +16 -0
- package/dist/gguf/fileReaders/GgufFsFileReader.js +62 -0
- package/dist/gguf/fileReaders/GgufFsFileReader.js.map +1 -0
- package/dist/gguf/fileReaders/GgufNetworkFetchFileReader.d.ts +28 -0
- package/dist/gguf/fileReaders/GgufNetworkFetchFileReader.js +94 -0
- package/dist/gguf/fileReaders/GgufNetworkFetchFileReader.js.map +1 -0
- package/dist/gguf/insights/GgufInsights.d.ts +78 -0
- package/dist/gguf/insights/GgufInsights.js +854 -0
- package/dist/gguf/insights/GgufInsights.js.map +1 -0
- package/dist/gguf/insights/GgufInsightsConfigurationResolver.d.ts +203 -0
- package/dist/gguf/insights/GgufInsightsConfigurationResolver.js +284 -0
- package/dist/gguf/insights/GgufInsightsConfigurationResolver.js.map +1 -0
- package/dist/gguf/insights/GgufInsightsTokens.d.ts +5 -0
- package/dist/gguf/insights/GgufInsightsTokens.js +40 -0
- package/dist/gguf/insights/GgufInsightsTokens.js.map +1 -0
- package/dist/gguf/insights/utils/getRamUsageFromUnifiedVram.d.ts +5 -0
- package/dist/gguf/insights/utils/getRamUsageFromUnifiedVram.js +7 -0
- package/dist/gguf/insights/utils/getRamUsageFromUnifiedVram.js.map +1 -0
- package/dist/gguf/insights/utils/resolveContextContextSizeOption.d.ts +33 -0
- package/dist/gguf/insights/utils/resolveContextContextSizeOption.js +117 -0
- package/dist/gguf/insights/utils/resolveContextContextSizeOption.js.map +1 -0
- package/dist/gguf/insights/utils/resolveModelGpuLayersOption.d.ts +20 -0
- package/dist/gguf/insights/utils/resolveModelGpuLayersOption.js +251 -0
- package/dist/gguf/insights/utils/resolveModelGpuLayersOption.js.map +1 -0
- package/dist/gguf/insights/utils/scoreLevels.d.ts +5 -0
- package/dist/gguf/insights/utils/scoreLevels.js +16 -0
- package/dist/gguf/insights/utils/scoreLevels.js.map +1 -0
- package/dist/gguf/parser/GgufV2Parser.d.ts +20 -0
- package/dist/gguf/parser/GgufV2Parser.js +184 -0
- package/dist/gguf/parser/GgufV2Parser.js.map +1 -0
- package/dist/gguf/parser/GgufV3Parser.d.ts +3 -0
- package/dist/gguf/parser/GgufV3Parser.js +4 -0
- package/dist/gguf/parser/GgufV3Parser.js.map +1 -0
- package/dist/gguf/parser/parseGguf.d.ts +8 -0
- package/dist/gguf/parser/parseGguf.js +61 -0
- package/dist/gguf/parser/parseGguf.js.map +1 -0
- package/dist/gguf/readGgufFileInfo.d.ts +54 -0
- package/dist/gguf/readGgufFileInfo.js +82 -0
- package/dist/gguf/readGgufFileInfo.js.map +1 -0
- package/dist/gguf/types/GgufFileInfoTypes.d.ts +85 -0
- package/dist/gguf/types/GgufFileInfoTypes.js +18 -0
- package/dist/gguf/types/GgufFileInfoTypes.js.map +1 -0
- package/dist/gguf/types/GgufMetadataTypes.d.ts +480 -0
- package/dist/gguf/types/GgufMetadataTypes.js +194 -0
- package/dist/gguf/types/GgufMetadataTypes.js.map +1 -0
- package/dist/gguf/types/GgufTensorInfoTypes.d.ts +63 -0
- package/dist/gguf/types/GgufTensorInfoTypes.js +54 -0
- package/dist/gguf/types/GgufTensorInfoTypes.js.map +1 -0
- package/dist/gguf/utils/GgufReadOffset.d.ts +6 -0
- package/dist/gguf/utils/GgufReadOffset.js +18 -0
- package/dist/gguf/utils/GgufReadOffset.js.map +1 -0
- package/dist/gguf/utils/convertMetadataKeyValueRecordToNestedObject.d.ts +6 -0
- package/dist/gguf/utils/convertMetadataKeyValueRecordToNestedObject.js +76 -0
- package/dist/gguf/utils/convertMetadataKeyValueRecordToNestedObject.js.map +1 -0
- package/dist/gguf/utils/getGgufFileTypeName.d.ts +4 -0
- package/dist/gguf/utils/getGgufFileTypeName.js +13 -0
- package/dist/gguf/utils/getGgufFileTypeName.js.map +1 -0
- package/dist/gguf/utils/getGgufMetadataArchitectureData.d.ts +3 -0
- package/dist/gguf/utils/getGgufMetadataArchitectureData.js +4 -0
- package/dist/gguf/utils/getGgufMetadataArchitectureData.js.map +1 -0
- package/dist/gguf/utils/getGgufMetadataKeyValue.d.ts +1 -0
- package/dist/gguf/utils/getGgufMetadataKeyValue.js +27 -0
- package/dist/gguf/utils/getGgufMetadataKeyValue.js.map +1 -0
- package/dist/gguf/utils/ggufQuantNames.d.ts +2 -0
- package/dist/gguf/utils/ggufQuantNames.js +42 -0
- package/dist/gguf/utils/ggufQuantNames.js.map +1 -0
- package/dist/gguf/utils/normalizeGgufDownloadUrl.d.ts +2 -0
- package/dist/gguf/utils/normalizeGgufDownloadUrl.js +18 -0
- package/dist/gguf/utils/normalizeGgufDownloadUrl.js.map +1 -0
- package/dist/gguf/utils/resolveBinarySplitGgufPartUrls.d.ts +2 -0
- package/dist/gguf/utils/resolveBinarySplitGgufPartUrls.js +38 -0
- package/dist/gguf/utils/resolveBinarySplitGgufPartUrls.js.map +1 -0
- package/dist/gguf/utils/resolveSplitGgufParts.d.ts +7 -0
- package/dist/gguf/utils/resolveSplitGgufParts.js +64 -0
- package/dist/gguf/utils/resolveSplitGgufParts.js.map +1 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -0
- package/dist/state.d.ts +6 -0
- package/dist/state.js +22 -0
- package/dist/state.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +408 -0
- package/dist/types.js +13 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/DisposeGuard.d.ts +13 -0
- package/dist/utils/DisposeGuard.js +120 -0
- package/dist/utils/DisposeGuard.js.map +1 -0
- package/dist/utils/InsufficientMemoryError.d.ts +3 -0
- package/dist/utils/InsufficientMemoryError.js +6 -0
- package/dist/utils/InsufficientMemoryError.js.map +1 -0
- package/dist/utils/LlamaText.d.ts +92 -0
- package/dist/utils/LlamaText.js +527 -0
- package/dist/utils/LlamaText.js.map +1 -0
- package/dist/utils/LruCache.d.ts +12 -0
- package/dist/utils/LruCache.js +44 -0
- package/dist/utils/LruCache.js.map +1 -0
- package/dist/utils/OpenAIFormat.d.ts +177 -0
- package/dist/utils/OpenAIFormat.js +488 -0
- package/dist/utils/OpenAIFormat.js.map +1 -0
- package/dist/utils/OverridesObject.d.ts +7 -0
- package/dist/utils/OverridesObject.js +2 -0
- package/dist/utils/OverridesObject.js.map +1 -0
- package/dist/utils/ReplHistory.d.ts +9 -0
- package/dist/utils/ReplHistory.js +72 -0
- package/dist/utils/ReplHistory.js.map +1 -0
- package/dist/utils/StopGenerationDetector.d.ts +47 -0
- package/dist/utils/StopGenerationDetector.js +291 -0
- package/dist/utils/StopGenerationDetector.js.map +1 -0
- package/dist/utils/ThreadsSplitter.d.ts +32 -0
- package/dist/utils/ThreadsSplitter.js +177 -0
- package/dist/utils/ThreadsSplitter.js.map +1 -0
- package/dist/utils/TokenStreamRegulator.d.ts +38 -0
- package/dist/utils/TokenStreamRegulator.js +200 -0
- package/dist/utils/TokenStreamRegulator.js.map +1 -0
- package/dist/utils/UnsupportedError.d.ts +2 -0
- package/dist/utils/UnsupportedError.js +7 -0
- package/dist/utils/UnsupportedError.js.map +1 -0
- package/dist/utils/appendUserMessageToChatHistory.d.ts +6 -0
- package/dist/utils/appendUserMessageToChatHistory.js +22 -0
- package/dist/utils/appendUserMessageToChatHistory.js.map +1 -0
- package/dist/utils/clearTempFolder.d.ts +1 -0
- package/dist/utils/clearTempFolder.js +16 -0
- package/dist/utils/clearTempFolder.js.map +1 -0
- package/dist/utils/cmake.d.ts +10 -0
- package/dist/utils/cmake.js +146 -0
- package/dist/utils/cmake.js.map +1 -0
- package/dist/utils/compareTokens.d.ts +2 -0
- package/dist/utils/compareTokens.js +4 -0
- package/dist/utils/compareTokens.js.map +1 -0
- package/dist/utils/createModelDownloader.d.ts +262 -0
- package/dist/utils/createModelDownloader.js +486 -0
- package/dist/utils/createModelDownloader.js.map +1 -0
- package/dist/utils/findBestOption.d.ts +4 -0
- package/dist/utils/findBestOption.js +15 -0
- package/dist/utils/findBestOption.js.map +1 -0
- package/dist/utils/findCharacterRemovalCountToFitChatHistoryInContext.d.ts +20 -0
- package/dist/utils/findCharacterRemovalCountToFitChatHistoryInContext.js +85 -0
- package/dist/utils/findCharacterRemovalCountToFitChatHistoryInContext.js.map +1 -0
- package/dist/utils/gbnfJson/GbnfGrammarGenerator.d.ts +19 -0
- package/dist/utils/gbnfJson/GbnfGrammarGenerator.js +60 -0
- package/dist/utils/gbnfJson/GbnfGrammarGenerator.js.map +1 -0
- package/dist/utils/gbnfJson/GbnfTerminal.d.ts +11 -0
- package/dist/utils/gbnfJson/GbnfTerminal.js +54 -0
- package/dist/utils/gbnfJson/GbnfTerminal.js.map +1 -0
- package/dist/utils/gbnfJson/getGbnfGrammarForGbnfJsonSchema.d.ts +5 -0
- package/dist/utils/gbnfJson/getGbnfGrammarForGbnfJsonSchema.js +11 -0
- package/dist/utils/gbnfJson/getGbnfGrammarForGbnfJsonSchema.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfAnyJson.d.ts +9 -0
- package/dist/utils/gbnfJson/terminals/GbnfAnyJson.js +53 -0
- package/dist/utils/gbnfJson/terminals/GbnfAnyJson.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfArray.d.ts +18 -0
- package/dist/utils/gbnfJson/terminals/GbnfArray.js +83 -0
- package/dist/utils/gbnfJson/terminals/GbnfArray.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfBoolean.d.ts +7 -0
- package/dist/utils/gbnfJson/terminals/GbnfBoolean.js +22 -0
- package/dist/utils/gbnfJson/terminals/GbnfBoolean.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfBooleanValue.d.ts +7 -0
- package/dist/utils/gbnfJson/terminals/GbnfBooleanValue.js +17 -0
- package/dist/utils/gbnfJson/terminals/GbnfBooleanValue.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfCommaWhitespace.d.ts +11 -0
- package/dist/utils/gbnfJson/terminals/GbnfCommaWhitespace.js +28 -0
- package/dist/utils/gbnfJson/terminals/GbnfCommaWhitespace.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfFormatString.d.ts +11 -0
- package/dist/utils/gbnfJson/terminals/GbnfFormatString.js +90 -0
- package/dist/utils/gbnfJson/terminals/GbnfFormatString.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfGrammar.d.ts +9 -0
- package/dist/utils/gbnfJson/terminals/GbnfGrammar.js +23 -0
- package/dist/utils/gbnfJson/terminals/GbnfGrammar.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfInsideStringChar.d.ts +5 -0
- package/dist/utils/gbnfJson/terminals/GbnfInsideStringChar.js +24 -0
- package/dist/utils/gbnfJson/terminals/GbnfInsideStringChar.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfNull.d.ts +5 -0
- package/dist/utils/gbnfJson/terminals/GbnfNull.js +11 -0
- package/dist/utils/gbnfJson/terminals/GbnfNull.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumber.d.ts +9 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumber.js +22 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumber.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumberValue.d.ts +9 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumberValue.js +21 -0
- package/dist/utils/gbnfJson/terminals/GbnfNumberValue.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfObjectMap.d.ts +28 -0
- package/dist/utils/gbnfJson/terminals/GbnfObjectMap.js +88 -0
- package/dist/utils/gbnfJson/terminals/GbnfObjectMap.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfOr.d.ts +9 -0
- package/dist/utils/gbnfJson/terminals/GbnfOr.js +34 -0
- package/dist/utils/gbnfJson/terminals/GbnfOr.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfRef.d.ts +15 -0
- package/dist/utils/gbnfJson/terminals/GbnfRef.js +34 -0
- package/dist/utils/gbnfJson/terminals/GbnfRef.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfRepetition.d.ts +15 -0
- package/dist/utils/gbnfJson/terminals/GbnfRepetition.js +86 -0
- package/dist/utils/gbnfJson/terminals/GbnfRepetition.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfString.d.ts +12 -0
- package/dist/utils/gbnfJson/terminals/GbnfString.js +43 -0
- package/dist/utils/gbnfJson/terminals/GbnfString.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfStringValue.d.ts +8 -0
- package/dist/utils/gbnfJson/terminals/GbnfStringValue.js +26 -0
- package/dist/utils/gbnfJson/terminals/GbnfStringValue.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfVerbatimText.d.ts +6 -0
- package/dist/utils/gbnfJson/terminals/GbnfVerbatimText.js +21 -0
- package/dist/utils/gbnfJson/terminals/GbnfVerbatimText.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/GbnfWhitespace.d.ts +13 -0
- package/dist/utils/gbnfJson/terminals/GbnfWhitespace.js +67 -0
- package/dist/utils/gbnfJson/terminals/GbnfWhitespace.js.map +1 -0
- package/dist/utils/gbnfJson/terminals/gbnfConsts.d.ts +30 -0
- package/dist/utils/gbnfJson/terminals/gbnfConsts.js +72 -0
- package/dist/utils/gbnfJson/terminals/gbnfConsts.js.map +1 -0
- package/dist/utils/gbnfJson/types.d.ts +213 -0
- package/dist/utils/gbnfJson/types.js +30 -0
- package/dist/utils/gbnfJson/types.js.map +1 -0
- package/dist/utils/gbnfJson/utils/GbnfJsonScopeState.d.ts +10 -0
- package/dist/utils/gbnfJson/utils/GbnfJsonScopeState.js +15 -0
- package/dist/utils/gbnfJson/utils/GbnfJsonScopeState.js.map +1 -0
- package/dist/utils/gbnfJson/utils/defsScope.d.ts +7 -0
- package/dist/utils/gbnfJson/utils/defsScope.js +17 -0
- package/dist/utils/gbnfJson/utils/defsScope.js.map +1 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForGbnfJsonSchema.d.ts +5 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForGbnfJsonSchema.js +143 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForGbnfJsonSchema.js.map +1 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForLiteral.d.ts +5 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForLiteral.js +16 -0
- package/dist/utils/gbnfJson/utils/getGbnfJsonTerminalForLiteral.js.map +1 -0
- package/dist/utils/gbnfJson/utils/validateObjectAgainstGbnfSchema.d.ts +8 -0
- package/dist/utils/gbnfJson/utils/validateObjectAgainstGbnfSchema.js +242 -0
- package/dist/utils/gbnfJson/utils/validateObjectAgainstGbnfSchema.js.map +1 -0
- package/dist/utils/getBuildDefaults.d.ts +5 -0
- package/dist/utils/getBuildDefaults.js +9 -0
- package/dist/utils/getBuildDefaults.js.map +1 -0
- package/dist/utils/getChatWrapperSegmentDefinition.d.ts +2 -0
- package/dist/utils/getChatWrapperSegmentDefinition.js +9 -0
- package/dist/utils/getChatWrapperSegmentDefinition.js.map +1 -0
- package/dist/utils/getConsoleLogPrefix.d.ts +1 -0
- package/dist/utils/getConsoleLogPrefix.js +10 -0
- package/dist/utils/getConsoleLogPrefix.js.map +1 -0
- package/dist/utils/getFirstWritableDir.d.ts +8 -0
- package/dist/utils/getFirstWritableDir.js +60 -0
- package/dist/utils/getFirstWritableDir.js.map +1 -0
- package/dist/utils/getGrammarsFolder.d.ts +2 -0
- package/dist/utils/getGrammarsFolder.js +19 -0
- package/dist/utils/getGrammarsFolder.js.map +1 -0
- package/dist/utils/getLlamaClasses.d.ts +9 -0
- package/dist/utils/getLlamaClasses.js +14 -0
- package/dist/utils/getLlamaClasses.js.map +1 -0
- package/dist/utils/getModuleVersion.d.ts +1 -0
- package/dist/utils/getModuleVersion.js +13 -0
- package/dist/utils/getModuleVersion.js.map +1 -0
- package/dist/utils/getQueuedTokensBeforeStopTrigger.d.ts +6 -0
- package/dist/utils/getQueuedTokensBeforeStopTrigger.js +22 -0
- package/dist/utils/getQueuedTokensBeforeStopTrigger.js.map +1 -0
- package/dist/utils/getReadableContextSize.d.ts +1 -0
- package/dist/utils/getReadableContextSize.js +7 -0
- package/dist/utils/getReadableContextSize.js.map +1 -0
- package/dist/utils/getTempDir.d.ts +10 -0
- package/dist/utils/getTempDir.js +121 -0
- package/dist/utils/getTempDir.js.map +1 -0
- package/dist/utils/getTypeScriptTypeStringForGbnfJsonSchema.d.ts +2 -0
- package/dist/utils/getTypeScriptTypeStringForGbnfJsonSchema.js +205 -0
- package/dist/utils/getTypeScriptTypeStringForGbnfJsonSchema.js.map +1 -0
- package/dist/utils/gitReleaseBundles.d.ts +2 -0
- package/dist/utils/gitReleaseBundles.js +132 -0
- package/dist/utils/gitReleaseBundles.js.map +1 -0
- package/dist/utils/hashString.d.ts +1 -0
- package/dist/utils/hashString.js +8 -0
- package/dist/utils/hashString.js.map +1 -0
- package/dist/utils/includesText.d.ts +1 -0
- package/dist/utils/includesText.js +12 -0
- package/dist/utils/includesText.js.map +1 -0
- package/dist/utils/isLockfileActive.d.ts +4 -0
- package/dist/utils/isLockfileActive.js +12 -0
- package/dist/utils/isLockfileActive.js.map +1 -0
- package/dist/utils/isToken.d.ts +2 -0
- package/dist/utils/isToken.js +4 -0
- package/dist/utils/isToken.js.map +1 -0
- package/dist/utils/isUrl.d.ts +1 -0
- package/dist/utils/isUrl.js +15 -0
- package/dist/utils/isUrl.js.map +1 -0
- package/dist/utils/mergeUnionTypes.d.ts +10 -0
- package/dist/utils/mergeUnionTypes.js +2 -0
- package/dist/utils/mergeUnionTypes.js.map +1 -0
- package/dist/utils/modelDownloadEndpoints.d.ts +13 -0
- package/dist/utils/modelDownloadEndpoints.js +27 -0
- package/dist/utils/modelDownloadEndpoints.js.map +1 -0
- package/dist/utils/modelFileAccessTokens.d.ts +5 -0
- package/dist/utils/modelFileAccessTokens.js +41 -0
- package/dist/utils/modelFileAccessTokens.js.map +1 -0
- package/dist/utils/optionsMatrix.d.ts +58 -0
- package/dist/utils/optionsMatrix.js +97 -0
- package/dist/utils/optionsMatrix.js.map +1 -0
- package/dist/utils/parseModelFileName.d.ts +15 -0
- package/dist/utils/parseModelFileName.js +132 -0
- package/dist/utils/parseModelFileName.js.map +1 -0
- package/dist/utils/parseModelUri.d.ts +40 -0
- package/dist/utils/parseModelUri.js +346 -0
- package/dist/utils/parseModelUri.js.map +1 -0
- package/dist/utils/parseTextTemplate.d.ts +66 -0
- package/dist/utils/parseTextTemplate.js +116 -0
- package/dist/utils/parseTextTemplate.js.map +1 -0
- package/dist/utils/prettyPrintObject.d.ts +10 -0
- package/dist/utils/prettyPrintObject.js +84 -0
- package/dist/utils/prettyPrintObject.js.map +1 -0
- package/dist/utils/pushAll.d.ts +6 -0
- package/dist/utils/pushAll.js +11 -0
- package/dist/utils/pushAll.js.map +1 -0
- package/dist/utils/removeNullFields.d.ts +2 -0
- package/dist/utils/removeNullFields.js +17 -0
- package/dist/utils/removeNullFields.js.map +1 -0
- package/dist/utils/resolveGithubRelease.d.ts +2 -0
- package/dist/utils/resolveGithubRelease.js +77 -0
- package/dist/utils/resolveGithubRelease.js.map +1 -0
- package/dist/utils/resolveLastTokens.d.ts +2 -0
- package/dist/utils/resolveLastTokens.js +12 -0
- package/dist/utils/resolveLastTokens.js.map +1 -0
- package/dist/utils/resolveModelDestination.d.ts +16 -0
- package/dist/utils/resolveModelDestination.js +54 -0
- package/dist/utils/resolveModelDestination.js.map +1 -0
- package/dist/utils/resolveModelFile.d.ts +142 -0
- package/dist/utils/resolveModelFile.js +201 -0
- package/dist/utils/resolveModelFile.js.map +1 -0
- package/dist/utils/runtime.d.ts +4 -0
- package/dist/utils/runtime.js +8 -0
- package/dist/utils/runtime.js.map +1 -0
- package/dist/utils/safeEventCallback.d.ts +6 -0
- package/dist/utils/safeEventCallback.js +29 -0
- package/dist/utils/safeEventCallback.js.map +1 -0
- package/dist/utils/signalSleep.d.ts +1 -0
- package/dist/utils/signalSleep.js +20 -0
- package/dist/utils/signalSleep.js.map +1 -0
- package/dist/utils/spawnCommand.d.ts +11 -0
- package/dist/utils/spawnCommand.js +89 -0
- package/dist/utils/spawnCommand.js.map +1 -0
- package/dist/utils/tokenizeInput.d.ts +3 -0
- package/dist/utils/tokenizeInput.js +14 -0
- package/dist/utils/tokenizeInput.js.map +1 -0
- package/dist/utils/tokenizerUtils.d.ts +12 -0
- package/dist/utils/tokenizerUtils.js +32 -0
- package/dist/utils/tokenizerUtils.js.map +1 -0
- package/dist/utils/transformPromisable.d.ts +54 -0
- package/dist/utils/transformPromisable.js +95 -0
- package/dist/utils/transformPromisable.js.map +1 -0
- package/dist/utils/truncateTextAndRoundToWords.d.ts +11 -0
- package/dist/utils/truncateTextAndRoundToWords.js +110 -0
- package/dist/utils/truncateTextAndRoundToWords.js.map +1 -0
- package/dist/utils/utilTypes.d.ts +18 -0
- package/dist/utils/utilTypes.js +2 -0
- package/dist/utils/utilTypes.js.map +1 -0
- package/dist/utils/waitForLockfileRelease.d.ts +5 -0
- package/dist/utils/waitForLockfileRelease.js +19 -0
- package/dist/utils/waitForLockfileRelease.js.map +1 -0
- package/dist/utils/withLockfile.d.ts +7 -0
- package/dist/utils/withLockfile.js +44 -0
- package/dist/utils/withLockfile.js.map +1 -0
- package/dist/utils/withOra.d.ts +7 -0
- package/dist/utils/withOra.js +37 -0
- package/dist/utils/withOra.js.map +1 -0
- package/dist/utils/withProgressLog.d.ts +22 -0
- package/dist/utils/withProgressLog.js +211 -0
- package/dist/utils/withProgressLog.js.map +1 -0
- package/dist/utils/withStatusLogs.d.ts +6 -0
- package/dist/utils/withStatusLogs.js +25 -0
- package/dist/utils/withStatusLogs.js.map +1 -0
- package/dist/utils/wrapAbortSignal.d.ts +1 -0
- package/dist/utils/wrapAbortSignal.js +14 -0
- package/dist/utils/wrapAbortSignal.js.map +1 -0
- package/llama/.clang-format +46 -0
- package/llama/CMakeLists.txt +141 -0
- package/llama/addon/AddonContext.cpp +1181 -0
- package/llama/addon/AddonContext.h +85 -0
- package/llama/addon/AddonGrammar.cpp +92 -0
- package/llama/addon/AddonGrammar.h +22 -0
- package/llama/addon/AddonGrammarEvaluationState.cpp +36 -0
- package/llama/addon/AddonGrammarEvaluationState.h +17 -0
- package/llama/addon/AddonModel.cpp +691 -0
- package/llama/addon/AddonModel.h +64 -0
- package/llama/addon/AddonModelData.cpp +25 -0
- package/llama/addon/AddonModelData.h +15 -0
- package/llama/addon/AddonModelLora.cpp +103 -0
- package/llama/addon/AddonModelLora.h +28 -0
- package/llama/addon/AddonSampler.cpp +669 -0
- package/llama/addon/AddonSampler.h +75 -0
- package/llama/addon/RingBuffer.h +109 -0
- package/llama/addon/addon.cpp +330 -0
- package/llama/addon/addonGlobals.cpp +22 -0
- package/llama/addon/addonGlobals.h +12 -0
- package/llama/addon/globals/addonLog.cpp +143 -0
- package/llama/addon/globals/addonLog.h +24 -0
- package/llama/addon/globals/addonProgress.cpp +15 -0
- package/llama/addon/globals/addonProgress.h +15 -0
- package/llama/addon/globals/getGpuInfo.cpp +146 -0
- package/llama/addon/globals/getGpuInfo.h +11 -0
- package/llama/addon/globals/getMemoryInfo.cpp +63 -0
- package/llama/addon/globals/getMemoryInfo.h +4 -0
- package/llama/addon/globals/getSwapInfo.cpp +69 -0
- package/llama/addon/globals/getSwapInfo.h +4 -0
- package/llama/binariesGithubRelease.json +3 -0
- package/llama/cmake/addVariantSuffix.cmake +21 -0
- package/llama/cmake/win32.ensureNinjaPath.cmake +68 -0
- package/llama/cmake/win32.ensureNodeLib.cmake +34 -0
- package/llama/cmake/win32.llvmApplyGnuModeAdaptations.cmake +12 -0
- package/llama/cmake/win32.llvmEnsureCmakeAr.cmake +37 -0
- package/llama/cmake/win32.llvmUseGnuModeCompilers.cmake +87 -0
- package/llama/cmake/win32.programFilesPaths.cmake +35 -0
- package/llama/gpuInfo/vulkan-gpu-info.cpp +207 -0
- package/llama/gpuInfo/vulkan-gpu-info.h +9 -0
- package/llama/package.json +5 -0
- package/llama/profiles/llvm.win32.host-arm64.target-arm64.cmake +14 -0
- package/llama/profiles/llvm.win32.host-x64.target-arm64.cmake +14 -0
- package/llama/profiles/llvm.win32.host-x64.target-x64.cmake +14 -0
- package/llama/toolchains/darwin.host-x64.target-arm64.cmake +8 -0
- package/llama/toolchains/linux.host-arm64.target-x64.cmake +5 -0
- package/llama/toolchains/linux.host-x64.target-arm64.cmake +5 -0
- package/llama/toolchains/linux.host-x64.target-arm71.cmake +5 -0
- package/llama/toolchains/llvm.win32.host-x64.target-x64.cmake +20 -0
- package/llama/toolchains/win32.host-arm64.target-arm64.cmake +21 -0
- package/llama/toolchains/win32.host-x64.target-arm64.cmake +21 -0
- package/llama/xpack/package.json +10 -0
- package/package.json +241 -0
- package/templates/README.md +6 -0
- package/templates/package.json +10 -0
- package/templates/packed/electron-typescript-react.json +1 -0
- package/templates/packed/node-typescript.json +1 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
export declare const enum GgufArchitectureType {
|
|
2
|
+
llama = "llama",
|
|
3
|
+
llama4 = "llama4",
|
|
4
|
+
deci = "deci",
|
|
5
|
+
falcon = "falcon",
|
|
6
|
+
grok = "grok",
|
|
7
|
+
gpt2 = "gpt2",
|
|
8
|
+
gptj = "gptj",
|
|
9
|
+
gptneox = "gptneox",
|
|
10
|
+
mpt = "mpt",
|
|
11
|
+
baichuan = "baichuan",
|
|
12
|
+
starcoder = "starcoder",
|
|
13
|
+
refact = "refact",
|
|
14
|
+
bert = "bert",
|
|
15
|
+
modernBert = "modern-bert",
|
|
16
|
+
nomicBert = "nomic-bert",
|
|
17
|
+
nomicBertMoe = "nomic-bert-moe",
|
|
18
|
+
neoBert = "neo-bert",
|
|
19
|
+
jinaBertV2 = "jina-bert-v2",
|
|
20
|
+
jinaBertV3 = "jina-bert-v3",
|
|
21
|
+
eurobert = "eurobert",
|
|
22
|
+
bloom = "bloom",
|
|
23
|
+
stablelm = "stablelm",
|
|
24
|
+
qwen = "qwen",
|
|
25
|
+
qwen2 = "qwen2",
|
|
26
|
+
qwen2moe = "qwen2moe",
|
|
27
|
+
qwen2vl = "qwen2vl",
|
|
28
|
+
qwen3 = "qwen3",
|
|
29
|
+
qwen3moe = "qwen3moe",
|
|
30
|
+
qwen3next = "qwen3next",
|
|
31
|
+
qwen3vl = "qwen3vl",
|
|
32
|
+
qwen3vlmoe = "qwen3vlmoe",
|
|
33
|
+
qwen35 = "qwen35",
|
|
34
|
+
qwen35moe = "qwen35moe",
|
|
35
|
+
phi2 = "phi2",
|
|
36
|
+
phi3 = "phi3",
|
|
37
|
+
phimoe = "phimoe",
|
|
38
|
+
plamo = "plamo",
|
|
39
|
+
plamo2 = "plamo2",
|
|
40
|
+
plamo3 = "plamo3",
|
|
41
|
+
codeshell = "codeshell",
|
|
42
|
+
orion = "orion",
|
|
43
|
+
internlm2 = "internlm2",
|
|
44
|
+
minicpm = "minicpm",
|
|
45
|
+
minicpm3 = "minicpm3",
|
|
46
|
+
gemma = "gemma",
|
|
47
|
+
gemma2 = "gemma2",
|
|
48
|
+
gemma3 = "gemma3",
|
|
49
|
+
gemma3n = "gemma3n",
|
|
50
|
+
gemmaEmbedding = "gemma-embedding",
|
|
51
|
+
starcoder2 = "starcoder2",
|
|
52
|
+
mamba = "mamba",
|
|
53
|
+
mamba2 = "mamba2",
|
|
54
|
+
jamba = "jamba",
|
|
55
|
+
falconH1 = "falcon-h1",
|
|
56
|
+
xverse = "xverse",
|
|
57
|
+
commandR = "command-r",
|
|
58
|
+
cohere2 = "cohere2",
|
|
59
|
+
dbrx = "dbrx",
|
|
60
|
+
olmo = "olmo",
|
|
61
|
+
olmo2 = "olmo2",
|
|
62
|
+
olmoe = "olmoe",
|
|
63
|
+
openelm = "openelm",
|
|
64
|
+
arctic = "arctic",
|
|
65
|
+
deepseek = "deepseek",
|
|
66
|
+
deepseek2 = "deepseek2",
|
|
67
|
+
chatglm = "chatglm",
|
|
68
|
+
glm4 = "glm4",
|
|
69
|
+
glm4moe = "glm4moe",
|
|
70
|
+
glmDsa = "glm-dsa",
|
|
71
|
+
bitnet = "bitnet",
|
|
72
|
+
t5 = "t5",
|
|
73
|
+
t5encoder = "t5encoder",
|
|
74
|
+
jais = "jais",
|
|
75
|
+
jais2 = "jais2",
|
|
76
|
+
nemotron = "nemotron",
|
|
77
|
+
nemotronH = "nemotron_h",
|
|
78
|
+
nemotronHMoe = "nemotron_h_moe",
|
|
79
|
+
exaone = "exaone",
|
|
80
|
+
exaone4 = "exaone4",
|
|
81
|
+
exaoneMoe = "exaone-moe",
|
|
82
|
+
rwkv6 = "rwkv6",
|
|
83
|
+
rwkv6qwen2 = "rwkv6qwen2",
|
|
84
|
+
rwkv7 = "rwkv7",
|
|
85
|
+
arwkv7 = "arwkv7",
|
|
86
|
+
granite = "granite",
|
|
87
|
+
granitemoe = "granitemoe",
|
|
88
|
+
granitehybrid = "granitehybrid",
|
|
89
|
+
chameleon = "chameleon",
|
|
90
|
+
wavtokenizerDec = "wavtokenizer-dec",
|
|
91
|
+
plm = "plm",
|
|
92
|
+
bailingmoe = "bailingmoe",
|
|
93
|
+
bailingmoe2 = "bailingmoe2",
|
|
94
|
+
dots1 = "dots1",
|
|
95
|
+
arcee = "arcee",
|
|
96
|
+
afmoe = "afmoe",
|
|
97
|
+
ernie4_5 = "ernie4_5",
|
|
98
|
+
ernie4_5Moe = "ernie4_5-moe",
|
|
99
|
+
hunyuanMoe = "hunyuan-moe",
|
|
100
|
+
hunyuanDense = "hunyuan-dense",
|
|
101
|
+
smollm3 = "smollm3",
|
|
102
|
+
gptOss = "gpt-oss",
|
|
103
|
+
lfm2 = "lfm2",
|
|
104
|
+
lfm2moe = "lfm2moe",
|
|
105
|
+
dream = "dream",
|
|
106
|
+
smallthinker = "smallthinker",
|
|
107
|
+
llada = "llada",
|
|
108
|
+
lladaMoe = "llada-moe",
|
|
109
|
+
seedOss = "seed_oss",
|
|
110
|
+
grovemoe = "grovemoe",
|
|
111
|
+
apertus = "apertus",
|
|
112
|
+
minimaxM2 = "minimax-m2",
|
|
113
|
+
cogvlm = "cogvlm",
|
|
114
|
+
rnd1 = "rnd1",
|
|
115
|
+
panguEmbedded = "pangu-embedded",
|
|
116
|
+
mistral3 = "mistral3",
|
|
117
|
+
mistral4 = "mistral4",
|
|
118
|
+
paddleocr = "paddleocr",
|
|
119
|
+
mimo2 = "mimo2",
|
|
120
|
+
step35 = "step35",
|
|
121
|
+
llamaEmbed = "llama-embed",
|
|
122
|
+
maincoder = "maincoder",
|
|
123
|
+
kimiLinear = "kimi-linear",
|
|
124
|
+
clip = "clip",
|
|
125
|
+
unknown = "(unknown)"
|
|
126
|
+
}
|
|
127
|
+
export type GgufMetadata<A extends GgufArchitectureType = GgufArchitectureType> = {
|
|
128
|
+
readonly general: GgufMetadataGeneral<A>;
|
|
129
|
+
readonly tokenizer: GgufMetadataTokenizer;
|
|
130
|
+
} & (GgufArchitectureType extends A ? {
|
|
131
|
+
readonly [key in GgufArchitectureType]?: key extends keyof GgufMetadataLlmToType ? GgufMetadataLlmToType[key] : GgufMetadataDefaultArchitectureType;
|
|
132
|
+
} : {
|
|
133
|
+
readonly [key in A]: key extends keyof GgufMetadataLlmToType ? GgufMetadataLlmToType[key] : GgufMetadataDefaultArchitectureType;
|
|
134
|
+
});
|
|
135
|
+
export type GgufMetadataLlmToType = {
|
|
136
|
+
[GgufArchitectureType.llama]: GgufMetadataLlmLLaMA;
|
|
137
|
+
[GgufArchitectureType.mpt]: GgufMetadataMPT;
|
|
138
|
+
[GgufArchitectureType.gptneox]: GgufMetadataGPTNeoX;
|
|
139
|
+
[GgufArchitectureType.gptj]: GgufMetadataGPTJ;
|
|
140
|
+
[GgufArchitectureType.gpt2]: GgufMetadataGPT2;
|
|
141
|
+
[GgufArchitectureType.bloom]: GgufMetadataBloom;
|
|
142
|
+
[GgufArchitectureType.falcon]: GgufMetadataFalcon;
|
|
143
|
+
[GgufArchitectureType.mamba]: GgufMetadataMamba;
|
|
144
|
+
};
|
|
145
|
+
export declare enum GgufFileType {
|
|
146
|
+
ALL_F32 = 0,
|
|
147
|
+
MOSTLY_F16 = 1,
|
|
148
|
+
MOSTLY_Q4_0 = 2,
|
|
149
|
+
MOSTLY_Q4_1 = 3,
|
|
150
|
+
MOSTLY_Q4_1_SOME_F16 = 4,// deprecated
|
|
151
|
+
MOSTLY_Q4_2 = 5,// deprecated
|
|
152
|
+
MOSTLY_Q4_3 = 6,// deprecated
|
|
153
|
+
MOSTLY_Q8_0 = 7,
|
|
154
|
+
MOSTLY_Q5_0 = 8,
|
|
155
|
+
MOSTLY_Q5_1 = 9,
|
|
156
|
+
MOSTLY_Q2_K = 10,
|
|
157
|
+
MOSTLY_Q3_K_S = 11,
|
|
158
|
+
MOSTLY_Q3_K_M = 12,
|
|
159
|
+
MOSTLY_Q3_K_L = 13,
|
|
160
|
+
MOSTLY_Q4_K_S = 14,
|
|
161
|
+
MOSTLY_Q4_K_M = 15,
|
|
162
|
+
MOSTLY_Q5_K_S = 16,
|
|
163
|
+
MOSTLY_Q5_K_M = 17,
|
|
164
|
+
MOSTLY_Q6_K = 18,
|
|
165
|
+
MOSTLY_IQ2_XXS = 19,
|
|
166
|
+
MOSTLY_IQ2_XS = 20,
|
|
167
|
+
MOSTLY_Q2_K_S = 21,
|
|
168
|
+
MOSTLY_IQ3_XS = 22,
|
|
169
|
+
MOSTLY_IQ3_XXS = 23,
|
|
170
|
+
MOSTLY_IQ1_S = 24,
|
|
171
|
+
MOSTLY_IQ4_NL = 25,
|
|
172
|
+
MOSTLY_IQ3_S = 26,
|
|
173
|
+
MOSTLY_IQ3_M = 27,
|
|
174
|
+
MOSTLY_IQ2_S = 28,
|
|
175
|
+
MOSTLY_IQ2_M = 29,
|
|
176
|
+
MOSTLY_IQ4_XS = 30,
|
|
177
|
+
MOSTLY_IQ1_M = 31,
|
|
178
|
+
MOSTLY_BF16 = 32,
|
|
179
|
+
MOSTLY_Q4_0_4_4 = 33,// deprecated
|
|
180
|
+
MOSTLY_Q4_0_4_8 = 34,// deprecated
|
|
181
|
+
MOSTLY_Q4_0_8_8 = 35,// deprecated
|
|
182
|
+
MOSTLY_TQ1_0 = 36,
|
|
183
|
+
MOSTLY_TQ2_0 = 37,
|
|
184
|
+
MOSTLY_MXFP4_MOE = 38,
|
|
185
|
+
MOSTLY_NVFP4 = 39
|
|
186
|
+
}
|
|
187
|
+
export type GgufMetadataGeneral<A extends GgufArchitectureType = GgufArchitectureType> = {
|
|
188
|
+
readonly architecture: A;
|
|
189
|
+
/**
|
|
190
|
+
* The version of the quantization format. Not required if the model is not
|
|
191
|
+
* quantized (i.e. no tensors are quantized). If any tensors are quantized,
|
|
192
|
+
* this must be present. This is separate to the quantization scheme of the
|
|
193
|
+
* tensors itself; the quantization version may change without changing the
|
|
194
|
+
* scheme's name (e.g. the quantization scheme is Q5_K, and the quantization
|
|
195
|
+
* version is 4).
|
|
196
|
+
*/
|
|
197
|
+
readonly quantization_version: string;
|
|
198
|
+
/**
|
|
199
|
+
* the global alignment to use, as described above. This can vary to allow
|
|
200
|
+
* for different alignment schemes, but it must be a multiple of 8. Some
|
|
201
|
+
* writers may not write the alignment. If the alignment is not specified,
|
|
202
|
+
* assume it is `32`.
|
|
203
|
+
*/
|
|
204
|
+
readonly alignment?: number;
|
|
205
|
+
/**
|
|
206
|
+
* The name of the model. This should be a human-readable name that can be
|
|
207
|
+
* used to identify the model. It should be unique within the community
|
|
208
|
+
* that the model is defined in.
|
|
209
|
+
*/
|
|
210
|
+
readonly name?: string;
|
|
211
|
+
readonly basename?: string;
|
|
212
|
+
readonly size_label?: string;
|
|
213
|
+
readonly author?: string;
|
|
214
|
+
/**
|
|
215
|
+
* URL to the model's homepage. This can be a GitHub repo, a paper, etc.
|
|
216
|
+
*/
|
|
217
|
+
readonly url?: string;
|
|
218
|
+
/**
|
|
219
|
+
* free-form description of the model including anything that isn't
|
|
220
|
+
* covered by the other fields
|
|
221
|
+
*/
|
|
222
|
+
readonly description?: string;
|
|
223
|
+
/**
|
|
224
|
+
* License of the model, expressed as a SPDX license expression
|
|
225
|
+
* (e.g. `MIT OR Apache-2.0`). *Should not* include any other information,
|
|
226
|
+
* such as the license text or the URL to the license.
|
|
227
|
+
*/
|
|
228
|
+
readonly license?: string;
|
|
229
|
+
readonly "license.name"?: string;
|
|
230
|
+
readonly "license.link"?: string;
|
|
231
|
+
/**
|
|
232
|
+
* Information about where this model came from. This is useful for tracking
|
|
233
|
+
* the provenance of the model, and for finding the original source if the
|
|
234
|
+
* model is modified. For a model that was converted from GGML, for
|
|
235
|
+
* example, these keys would point to the model that was converted from.
|
|
236
|
+
*/
|
|
237
|
+
readonly source?: {
|
|
238
|
+
/**
|
|
239
|
+
* URL to the source of the model. Can be a GitHub repo, a paper, etc.
|
|
240
|
+
*/
|
|
241
|
+
readonly url?: string;
|
|
242
|
+
readonly huggingface?: {
|
|
243
|
+
readonly repository?: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* An enumerated value describing the type of the majority of the tensors
|
|
248
|
+
* in the file. Optional; can be inferred from the tensor types.
|
|
249
|
+
*/
|
|
250
|
+
readonly file_type?: GgufFileType | undefined;
|
|
251
|
+
readonly base_model?: {
|
|
252
|
+
readonly count: number;
|
|
253
|
+
readonly [key: `${bigint}`]: {
|
|
254
|
+
readonly name?: string;
|
|
255
|
+
readonly author?: string;
|
|
256
|
+
readonly version?: string;
|
|
257
|
+
readonly organization?: string;
|
|
258
|
+
readonly url?: string;
|
|
259
|
+
readonly doi?: string;
|
|
260
|
+
readonly uuid?: string;
|
|
261
|
+
readonly repo_url?: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
export declare const enum GgufMetadataTokenizerTokenType {
|
|
266
|
+
undefined = 0,
|
|
267
|
+
normal = 1,
|
|
268
|
+
unknown = 2,
|
|
269
|
+
control = 3,
|
|
270
|
+
userDefined = 4,
|
|
271
|
+
unused = 5,
|
|
272
|
+
byte = 6
|
|
273
|
+
}
|
|
274
|
+
export type GgufMetadataTokenizer = {
|
|
275
|
+
readonly ggml: {
|
|
276
|
+
readonly model: "no_vocab" | "none" | "llama" | "gpt2" | "bert" | "rwkv" | "t5" | "plamo2" | string;
|
|
277
|
+
readonly pre?: "default" | "llama3" | "llama-v3" | "llama-bpe" | "deepseek-llm" | "deepseek-coder" | "falcon" | "falcon3" | "pixtral" | "mpt" | "starcoder" | "gpt-2" | "phi-2" | "jina-es" | "jina-de" | "jina-v1-en" | "jina-v2-es" | "jina-v2-de" | "jina-v2-code" | "refact" | "command-r" | "qwen2" | "stablelm2" | "olmo" | "dbrx" | "smaug-bpe" | "poro-chat" | "chatglm-bpe" | "viking" | "jais" | "tekken" | "smollm" | "codeshell" | "bloom" | "gpt3-finnish" | "exaone" | "exaone4" | "chameleon" | "minerva-7b" | "megrez" | "gpt-4o" | "superbpe" | "trillion" | "bailingmoe" | "a.x-4.0" | "mellum" | "modern-bert" | "roberta-bpe" | "deepseek-r1-qwen" | "kormo" | "qwen35" | string;
|
|
278
|
+
readonly tokens: readonly string[];
|
|
279
|
+
readonly token_type: GgufMetadataTokenizerTokenType[];
|
|
280
|
+
readonly token_type_count?: number;
|
|
281
|
+
readonly scores?: readonly number[];
|
|
282
|
+
readonly merges?: readonly string[];
|
|
283
|
+
readonly bos_token_id?: number;
|
|
284
|
+
readonly eos_token_id?: number;
|
|
285
|
+
readonly eot_token_id?: number;
|
|
286
|
+
readonly eom_token_id?: number;
|
|
287
|
+
readonly unknown_token_id?: number;
|
|
288
|
+
readonly seperator_token_id?: number;
|
|
289
|
+
readonly padding_token_id?: number;
|
|
290
|
+
readonly cls_token_id?: number;
|
|
291
|
+
readonly mask_token_id?: number;
|
|
292
|
+
readonly add_bos_token?: boolean;
|
|
293
|
+
readonly add_eos_token?: boolean;
|
|
294
|
+
readonly add_space_prefix?: boolean;
|
|
295
|
+
readonly added_tokens?: readonly string[];
|
|
296
|
+
readonly fim_pre_token_id?: number;
|
|
297
|
+
readonly fim_suf_token_id?: number;
|
|
298
|
+
readonly fim_mid_token_id?: number;
|
|
299
|
+
readonly fim_pad_token_id?: number;
|
|
300
|
+
readonly fim_rep_token_id?: number;
|
|
301
|
+
readonly fim_sep_token_id?: number;
|
|
302
|
+
/** @deprecated */
|
|
303
|
+
readonly prefix_token_id?: number;
|
|
304
|
+
/** @deprecated */
|
|
305
|
+
readonly suffix_token_id?: number;
|
|
306
|
+
/** @deprecated */
|
|
307
|
+
readonly middle_token_id?: number;
|
|
308
|
+
};
|
|
309
|
+
readonly huggingface?: {
|
|
310
|
+
readonly json?: string;
|
|
311
|
+
};
|
|
312
|
+
readonly chat_template?: string;
|
|
313
|
+
readonly "chat_template.rerank"?: string;
|
|
314
|
+
};
|
|
315
|
+
export declare const enum GgufMetadataArchitecturePoolingType {
|
|
316
|
+
unspecified = -1,
|
|
317
|
+
none = 0,
|
|
318
|
+
mean = 1,
|
|
319
|
+
cls = 2,
|
|
320
|
+
last = 3,
|
|
321
|
+
rank = 4
|
|
322
|
+
}
|
|
323
|
+
export type GgufMetadataDefaultArchitectureType = {
|
|
324
|
+
readonly vocab_size?: number;
|
|
325
|
+
readonly context_length?: number;
|
|
326
|
+
readonly embedding_length?: number;
|
|
327
|
+
readonly block_count?: number;
|
|
328
|
+
readonly full_attention_interval?: number;
|
|
329
|
+
readonly feed_forward_length?: number;
|
|
330
|
+
readonly use_parallel_residual?: boolean;
|
|
331
|
+
readonly tensor_data_layout?: string;
|
|
332
|
+
readonly expert_count?: number;
|
|
333
|
+
readonly expert_used_count?: number;
|
|
334
|
+
readonly pooling_type?: GgufMetadataArchitecturePoolingType;
|
|
335
|
+
readonly logit_scale?: number;
|
|
336
|
+
readonly token_shift_count?: number;
|
|
337
|
+
readonly attention?: {
|
|
338
|
+
readonly head_count?: number;
|
|
339
|
+
readonly head_count_kv?: number | number[];
|
|
340
|
+
readonly max_alibi_bias?: number;
|
|
341
|
+
readonly clamp_kqv?: number;
|
|
342
|
+
readonly layer_norm_epsilon?: number;
|
|
343
|
+
readonly layer_norm_rms_epsilon?: number;
|
|
344
|
+
readonly key_length?: number;
|
|
345
|
+
readonly value_length?: number;
|
|
346
|
+
readonly sliding_window?: number;
|
|
347
|
+
readonly sliding_window_pattern?: number | number[];
|
|
348
|
+
readonly causal?: boolean;
|
|
349
|
+
};
|
|
350
|
+
readonly rope?: {
|
|
351
|
+
readonly dimension_count?: number;
|
|
352
|
+
readonly freq_base?: number;
|
|
353
|
+
readonly freq_base_swa?: number;
|
|
354
|
+
readonly scale_linear?: number;
|
|
355
|
+
readonly scaling?: {
|
|
356
|
+
readonly type?: "none" | "linear" | "yarn" | string;
|
|
357
|
+
readonly factor?: number;
|
|
358
|
+
readonly original_context_length?: number;
|
|
359
|
+
readonly finetuned?: boolean;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
readonly ssm?: {
|
|
363
|
+
readonly conv_kernel?: number;
|
|
364
|
+
readonly inner_size?: number;
|
|
365
|
+
readonly state_size?: number;
|
|
366
|
+
readonly time_step_rank?: number;
|
|
367
|
+
readonly group_count?: number;
|
|
368
|
+
};
|
|
369
|
+
readonly kda?: {
|
|
370
|
+
readonly head_dim?: number;
|
|
371
|
+
};
|
|
372
|
+
readonly shortconv?: {
|
|
373
|
+
readonly l_cache?: number;
|
|
374
|
+
};
|
|
375
|
+
readonly wkv?: {
|
|
376
|
+
readonly head_size?: number;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
export type GgufMetadataLlmLLaMA = {
|
|
380
|
+
readonly context_length: number;
|
|
381
|
+
readonly embedding_length: number;
|
|
382
|
+
readonly block_count: number;
|
|
383
|
+
readonly feed_forward_length: number;
|
|
384
|
+
readonly attention: {
|
|
385
|
+
readonly head_count: number;
|
|
386
|
+
readonly layer_norm_rms_epsilon: number;
|
|
387
|
+
readonly head_count_kv?: number;
|
|
388
|
+
};
|
|
389
|
+
readonly rope: {
|
|
390
|
+
readonly dimension_count: number;
|
|
391
|
+
readonly scale?: number;
|
|
392
|
+
};
|
|
393
|
+
readonly expert_count?: number;
|
|
394
|
+
readonly expert_used_count?: number;
|
|
395
|
+
readonly tensor_data_layout?: string;
|
|
396
|
+
};
|
|
397
|
+
export type GgufMetadataMPT = {
|
|
398
|
+
readonly context_length: number;
|
|
399
|
+
readonly embedding_length: number;
|
|
400
|
+
readonly block_count: number;
|
|
401
|
+
readonly attention: {
|
|
402
|
+
readonly head_count: number;
|
|
403
|
+
readonly alibi_bias_max: number;
|
|
404
|
+
readonly clip_kqv: number;
|
|
405
|
+
readonly layer_norm_epsilon: number;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
export type GgufMetadataGPTNeoX = {
|
|
409
|
+
readonly context_length: number;
|
|
410
|
+
readonly embedding_length: number;
|
|
411
|
+
readonly block_count: number;
|
|
412
|
+
readonly use_parallel_residual: boolean;
|
|
413
|
+
readonly rope: {
|
|
414
|
+
readonly dimension_count: number;
|
|
415
|
+
readonly scale?: number;
|
|
416
|
+
};
|
|
417
|
+
readonly attention: {
|
|
418
|
+
readonly head_count: number;
|
|
419
|
+
readonly layer_norm_epsilon: number;
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
export type GgufMetadataGPTJ = {
|
|
423
|
+
readonly context_length: number;
|
|
424
|
+
readonly embedding_length: number;
|
|
425
|
+
readonly block_count: number;
|
|
426
|
+
readonly rope: {
|
|
427
|
+
readonly dimension_count: number;
|
|
428
|
+
readonly scale?: number;
|
|
429
|
+
};
|
|
430
|
+
readonly attention: {
|
|
431
|
+
readonly head_count: number;
|
|
432
|
+
readonly layer_norm_epsilon: number;
|
|
433
|
+
};
|
|
434
|
+
};
|
|
435
|
+
export type GgufMetadataGPT2 = {
|
|
436
|
+
readonly context_length: number;
|
|
437
|
+
readonly embedding_length: number;
|
|
438
|
+
readonly block_count: number;
|
|
439
|
+
readonly attention: {
|
|
440
|
+
readonly head_count: number;
|
|
441
|
+
readonly layer_norm_epsilon: number;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
export type GgufMetadataBloom = {
|
|
445
|
+
readonly context_length: number;
|
|
446
|
+
readonly embedding_length: number;
|
|
447
|
+
readonly block_count: number;
|
|
448
|
+
readonly feed_forward_length: number;
|
|
449
|
+
readonly attention: {
|
|
450
|
+
readonly head_count: number;
|
|
451
|
+
readonly layer_norm_epsilon: number;
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
export type GgufMetadataFalcon = {
|
|
455
|
+
readonly context_length: number;
|
|
456
|
+
readonly embedding_length: number;
|
|
457
|
+
readonly block_count: number;
|
|
458
|
+
readonly attention: {
|
|
459
|
+
readonly head_count: number;
|
|
460
|
+
readonly head_count_kv: number;
|
|
461
|
+
readonly use_norm: boolean;
|
|
462
|
+
readonly layer_norm_epsilon: number;
|
|
463
|
+
};
|
|
464
|
+
readonly tensor_data_layout?: string;
|
|
465
|
+
};
|
|
466
|
+
export type GgufMetadataMamba = {
|
|
467
|
+
readonly context_length: number;
|
|
468
|
+
readonly embedding_length: number;
|
|
469
|
+
readonly block_count: number;
|
|
470
|
+
readonly ssm: {
|
|
471
|
+
readonly conv_kernel: number;
|
|
472
|
+
readonly inner_size: number;
|
|
473
|
+
readonly state_size: number;
|
|
474
|
+
readonly time_step_rank: number;
|
|
475
|
+
};
|
|
476
|
+
readonly attention: {
|
|
477
|
+
readonly layer_norm_rms_epsilon: number;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export declare function isGgufMetadataOfArchitectureType<A extends GgufArchitectureType>(metadata: GgufMetadata, type: A): metadata is GgufMetadata<A>;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
export var GgufArchitectureType;
|
|
2
|
+
(function (GgufArchitectureType) {
|
|
3
|
+
GgufArchitectureType["llama"] = "llama";
|
|
4
|
+
GgufArchitectureType["llama4"] = "llama4";
|
|
5
|
+
GgufArchitectureType["deci"] = "deci";
|
|
6
|
+
GgufArchitectureType["falcon"] = "falcon";
|
|
7
|
+
GgufArchitectureType["grok"] = "grok";
|
|
8
|
+
GgufArchitectureType["gpt2"] = "gpt2";
|
|
9
|
+
GgufArchitectureType["gptj"] = "gptj";
|
|
10
|
+
GgufArchitectureType["gptneox"] = "gptneox";
|
|
11
|
+
GgufArchitectureType["mpt"] = "mpt";
|
|
12
|
+
GgufArchitectureType["baichuan"] = "baichuan";
|
|
13
|
+
GgufArchitectureType["starcoder"] = "starcoder";
|
|
14
|
+
GgufArchitectureType["refact"] = "refact";
|
|
15
|
+
GgufArchitectureType["bert"] = "bert";
|
|
16
|
+
GgufArchitectureType["modernBert"] = "modern-bert";
|
|
17
|
+
GgufArchitectureType["nomicBert"] = "nomic-bert";
|
|
18
|
+
GgufArchitectureType["nomicBertMoe"] = "nomic-bert-moe";
|
|
19
|
+
GgufArchitectureType["neoBert"] = "neo-bert";
|
|
20
|
+
GgufArchitectureType["jinaBertV2"] = "jina-bert-v2";
|
|
21
|
+
GgufArchitectureType["jinaBertV3"] = "jina-bert-v3";
|
|
22
|
+
GgufArchitectureType["eurobert"] = "eurobert";
|
|
23
|
+
GgufArchitectureType["bloom"] = "bloom";
|
|
24
|
+
GgufArchitectureType["stablelm"] = "stablelm";
|
|
25
|
+
GgufArchitectureType["qwen"] = "qwen";
|
|
26
|
+
GgufArchitectureType["qwen2"] = "qwen2";
|
|
27
|
+
GgufArchitectureType["qwen2moe"] = "qwen2moe";
|
|
28
|
+
GgufArchitectureType["qwen2vl"] = "qwen2vl";
|
|
29
|
+
GgufArchitectureType["qwen3"] = "qwen3";
|
|
30
|
+
GgufArchitectureType["qwen3moe"] = "qwen3moe";
|
|
31
|
+
GgufArchitectureType["qwen3next"] = "qwen3next";
|
|
32
|
+
GgufArchitectureType["qwen3vl"] = "qwen3vl";
|
|
33
|
+
GgufArchitectureType["qwen3vlmoe"] = "qwen3vlmoe";
|
|
34
|
+
GgufArchitectureType["qwen35"] = "qwen35";
|
|
35
|
+
GgufArchitectureType["qwen35moe"] = "qwen35moe";
|
|
36
|
+
GgufArchitectureType["phi2"] = "phi2";
|
|
37
|
+
GgufArchitectureType["phi3"] = "phi3";
|
|
38
|
+
GgufArchitectureType["phimoe"] = "phimoe";
|
|
39
|
+
GgufArchitectureType["plamo"] = "plamo";
|
|
40
|
+
GgufArchitectureType["plamo2"] = "plamo2";
|
|
41
|
+
GgufArchitectureType["plamo3"] = "plamo3";
|
|
42
|
+
GgufArchitectureType["codeshell"] = "codeshell";
|
|
43
|
+
GgufArchitectureType["orion"] = "orion";
|
|
44
|
+
GgufArchitectureType["internlm2"] = "internlm2";
|
|
45
|
+
GgufArchitectureType["minicpm"] = "minicpm";
|
|
46
|
+
GgufArchitectureType["minicpm3"] = "minicpm3";
|
|
47
|
+
GgufArchitectureType["gemma"] = "gemma";
|
|
48
|
+
GgufArchitectureType["gemma2"] = "gemma2";
|
|
49
|
+
GgufArchitectureType["gemma3"] = "gemma3";
|
|
50
|
+
GgufArchitectureType["gemma3n"] = "gemma3n";
|
|
51
|
+
GgufArchitectureType["gemmaEmbedding"] = "gemma-embedding";
|
|
52
|
+
GgufArchitectureType["starcoder2"] = "starcoder2";
|
|
53
|
+
GgufArchitectureType["mamba"] = "mamba";
|
|
54
|
+
GgufArchitectureType["mamba2"] = "mamba2";
|
|
55
|
+
GgufArchitectureType["jamba"] = "jamba";
|
|
56
|
+
GgufArchitectureType["falconH1"] = "falcon-h1";
|
|
57
|
+
GgufArchitectureType["xverse"] = "xverse";
|
|
58
|
+
GgufArchitectureType["commandR"] = "command-r";
|
|
59
|
+
GgufArchitectureType["cohere2"] = "cohere2";
|
|
60
|
+
GgufArchitectureType["dbrx"] = "dbrx";
|
|
61
|
+
GgufArchitectureType["olmo"] = "olmo";
|
|
62
|
+
GgufArchitectureType["olmo2"] = "olmo2";
|
|
63
|
+
GgufArchitectureType["olmoe"] = "olmoe";
|
|
64
|
+
GgufArchitectureType["openelm"] = "openelm";
|
|
65
|
+
GgufArchitectureType["arctic"] = "arctic";
|
|
66
|
+
GgufArchitectureType["deepseek"] = "deepseek";
|
|
67
|
+
GgufArchitectureType["deepseek2"] = "deepseek2";
|
|
68
|
+
GgufArchitectureType["chatglm"] = "chatglm";
|
|
69
|
+
GgufArchitectureType["glm4"] = "glm4";
|
|
70
|
+
GgufArchitectureType["glm4moe"] = "glm4moe";
|
|
71
|
+
GgufArchitectureType["glmDsa"] = "glm-dsa";
|
|
72
|
+
GgufArchitectureType["bitnet"] = "bitnet";
|
|
73
|
+
GgufArchitectureType["t5"] = "t5";
|
|
74
|
+
GgufArchitectureType["t5encoder"] = "t5encoder";
|
|
75
|
+
GgufArchitectureType["jais"] = "jais";
|
|
76
|
+
GgufArchitectureType["jais2"] = "jais2";
|
|
77
|
+
GgufArchitectureType["nemotron"] = "nemotron";
|
|
78
|
+
GgufArchitectureType["nemotronH"] = "nemotron_h";
|
|
79
|
+
GgufArchitectureType["nemotronHMoe"] = "nemotron_h_moe";
|
|
80
|
+
GgufArchitectureType["exaone"] = "exaone";
|
|
81
|
+
GgufArchitectureType["exaone4"] = "exaone4";
|
|
82
|
+
GgufArchitectureType["exaoneMoe"] = "exaone-moe";
|
|
83
|
+
GgufArchitectureType["rwkv6"] = "rwkv6";
|
|
84
|
+
GgufArchitectureType["rwkv6qwen2"] = "rwkv6qwen2";
|
|
85
|
+
GgufArchitectureType["rwkv7"] = "rwkv7";
|
|
86
|
+
GgufArchitectureType["arwkv7"] = "arwkv7";
|
|
87
|
+
GgufArchitectureType["granite"] = "granite";
|
|
88
|
+
GgufArchitectureType["granitemoe"] = "granitemoe";
|
|
89
|
+
GgufArchitectureType["granitehybrid"] = "granitehybrid";
|
|
90
|
+
GgufArchitectureType["chameleon"] = "chameleon";
|
|
91
|
+
GgufArchitectureType["wavtokenizerDec"] = "wavtokenizer-dec";
|
|
92
|
+
GgufArchitectureType["plm"] = "plm";
|
|
93
|
+
GgufArchitectureType["bailingmoe"] = "bailingmoe";
|
|
94
|
+
GgufArchitectureType["bailingmoe2"] = "bailingmoe2";
|
|
95
|
+
GgufArchitectureType["dots1"] = "dots1";
|
|
96
|
+
GgufArchitectureType["arcee"] = "arcee";
|
|
97
|
+
GgufArchitectureType["afmoe"] = "afmoe";
|
|
98
|
+
GgufArchitectureType["ernie4_5"] = "ernie4_5";
|
|
99
|
+
GgufArchitectureType["ernie4_5Moe"] = "ernie4_5-moe";
|
|
100
|
+
GgufArchitectureType["hunyuanMoe"] = "hunyuan-moe";
|
|
101
|
+
GgufArchitectureType["hunyuanDense"] = "hunyuan-dense";
|
|
102
|
+
GgufArchitectureType["smollm3"] = "smollm3";
|
|
103
|
+
GgufArchitectureType["gptOss"] = "gpt-oss";
|
|
104
|
+
GgufArchitectureType["lfm2"] = "lfm2";
|
|
105
|
+
GgufArchitectureType["lfm2moe"] = "lfm2moe";
|
|
106
|
+
GgufArchitectureType["dream"] = "dream";
|
|
107
|
+
GgufArchitectureType["smallthinker"] = "smallthinker";
|
|
108
|
+
GgufArchitectureType["llada"] = "llada";
|
|
109
|
+
GgufArchitectureType["lladaMoe"] = "llada-moe";
|
|
110
|
+
GgufArchitectureType["seedOss"] = "seed_oss";
|
|
111
|
+
GgufArchitectureType["grovemoe"] = "grovemoe";
|
|
112
|
+
GgufArchitectureType["apertus"] = "apertus";
|
|
113
|
+
GgufArchitectureType["minimaxM2"] = "minimax-m2";
|
|
114
|
+
GgufArchitectureType["cogvlm"] = "cogvlm";
|
|
115
|
+
GgufArchitectureType["rnd1"] = "rnd1";
|
|
116
|
+
GgufArchitectureType["panguEmbedded"] = "pangu-embedded";
|
|
117
|
+
GgufArchitectureType["mistral3"] = "mistral3";
|
|
118
|
+
GgufArchitectureType["mistral4"] = "mistral4";
|
|
119
|
+
GgufArchitectureType["paddleocr"] = "paddleocr";
|
|
120
|
+
GgufArchitectureType["mimo2"] = "mimo2";
|
|
121
|
+
GgufArchitectureType["step35"] = "step35";
|
|
122
|
+
GgufArchitectureType["llamaEmbed"] = "llama-embed";
|
|
123
|
+
GgufArchitectureType["maincoder"] = "maincoder";
|
|
124
|
+
GgufArchitectureType["kimiLinear"] = "kimi-linear";
|
|
125
|
+
GgufArchitectureType["clip"] = "clip";
|
|
126
|
+
GgufArchitectureType["unknown"] = "(unknown)";
|
|
127
|
+
})(GgufArchitectureType || (GgufArchitectureType = {}));
|
|
128
|
+
// source: `enum llama_ftype` in `llama.h` in the `llama.cpp` source code
|
|
129
|
+
export var GgufFileType;
|
|
130
|
+
(function (GgufFileType) {
|
|
131
|
+
GgufFileType[GgufFileType["ALL_F32"] = 0] = "ALL_F32";
|
|
132
|
+
GgufFileType[GgufFileType["MOSTLY_F16"] = 1] = "MOSTLY_F16";
|
|
133
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_0"] = 2] = "MOSTLY_Q4_0";
|
|
134
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_1"] = 3] = "MOSTLY_Q4_1";
|
|
135
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_1_SOME_F16"] = 4] = "MOSTLY_Q4_1_SOME_F16";
|
|
136
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_2"] = 5] = "MOSTLY_Q4_2";
|
|
137
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_3"] = 6] = "MOSTLY_Q4_3";
|
|
138
|
+
GgufFileType[GgufFileType["MOSTLY_Q8_0"] = 7] = "MOSTLY_Q8_0";
|
|
139
|
+
GgufFileType[GgufFileType["MOSTLY_Q5_0"] = 8] = "MOSTLY_Q5_0";
|
|
140
|
+
GgufFileType[GgufFileType["MOSTLY_Q5_1"] = 9] = "MOSTLY_Q5_1";
|
|
141
|
+
GgufFileType[GgufFileType["MOSTLY_Q2_K"] = 10] = "MOSTLY_Q2_K";
|
|
142
|
+
GgufFileType[GgufFileType["MOSTLY_Q3_K_S"] = 11] = "MOSTLY_Q3_K_S";
|
|
143
|
+
GgufFileType[GgufFileType["MOSTLY_Q3_K_M"] = 12] = "MOSTLY_Q3_K_M";
|
|
144
|
+
GgufFileType[GgufFileType["MOSTLY_Q3_K_L"] = 13] = "MOSTLY_Q3_K_L";
|
|
145
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_K_S"] = 14] = "MOSTLY_Q4_K_S";
|
|
146
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_K_M"] = 15] = "MOSTLY_Q4_K_M";
|
|
147
|
+
GgufFileType[GgufFileType["MOSTLY_Q5_K_S"] = 16] = "MOSTLY_Q5_K_S";
|
|
148
|
+
GgufFileType[GgufFileType["MOSTLY_Q5_K_M"] = 17] = "MOSTLY_Q5_K_M";
|
|
149
|
+
GgufFileType[GgufFileType["MOSTLY_Q6_K"] = 18] = "MOSTLY_Q6_K";
|
|
150
|
+
GgufFileType[GgufFileType["MOSTLY_IQ2_XXS"] = 19] = "MOSTLY_IQ2_XXS";
|
|
151
|
+
GgufFileType[GgufFileType["MOSTLY_IQ2_XS"] = 20] = "MOSTLY_IQ2_XS";
|
|
152
|
+
GgufFileType[GgufFileType["MOSTLY_Q2_K_S"] = 21] = "MOSTLY_Q2_K_S";
|
|
153
|
+
GgufFileType[GgufFileType["MOSTLY_IQ3_XS"] = 22] = "MOSTLY_IQ3_XS";
|
|
154
|
+
GgufFileType[GgufFileType["MOSTLY_IQ3_XXS"] = 23] = "MOSTLY_IQ3_XXS";
|
|
155
|
+
GgufFileType[GgufFileType["MOSTLY_IQ1_S"] = 24] = "MOSTLY_IQ1_S";
|
|
156
|
+
GgufFileType[GgufFileType["MOSTLY_IQ4_NL"] = 25] = "MOSTLY_IQ4_NL";
|
|
157
|
+
GgufFileType[GgufFileType["MOSTLY_IQ3_S"] = 26] = "MOSTLY_IQ3_S";
|
|
158
|
+
GgufFileType[GgufFileType["MOSTLY_IQ3_M"] = 27] = "MOSTLY_IQ3_M";
|
|
159
|
+
GgufFileType[GgufFileType["MOSTLY_IQ2_S"] = 28] = "MOSTLY_IQ2_S";
|
|
160
|
+
GgufFileType[GgufFileType["MOSTLY_IQ2_M"] = 29] = "MOSTLY_IQ2_M";
|
|
161
|
+
GgufFileType[GgufFileType["MOSTLY_IQ4_XS"] = 30] = "MOSTLY_IQ4_XS";
|
|
162
|
+
GgufFileType[GgufFileType["MOSTLY_IQ1_M"] = 31] = "MOSTLY_IQ1_M";
|
|
163
|
+
GgufFileType[GgufFileType["MOSTLY_BF16"] = 32] = "MOSTLY_BF16";
|
|
164
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_0_4_4"] = 33] = "MOSTLY_Q4_0_4_4";
|
|
165
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_0_4_8"] = 34] = "MOSTLY_Q4_0_4_8";
|
|
166
|
+
GgufFileType[GgufFileType["MOSTLY_Q4_0_8_8"] = 35] = "MOSTLY_Q4_0_8_8";
|
|
167
|
+
GgufFileType[GgufFileType["MOSTLY_TQ1_0"] = 36] = "MOSTLY_TQ1_0";
|
|
168
|
+
GgufFileType[GgufFileType["MOSTLY_TQ2_0"] = 37] = "MOSTLY_TQ2_0";
|
|
169
|
+
GgufFileType[GgufFileType["MOSTLY_MXFP4_MOE"] = 38] = "MOSTLY_MXFP4_MOE";
|
|
170
|
+
GgufFileType[GgufFileType["MOSTLY_NVFP4"] = 39] = "MOSTLY_NVFP4";
|
|
171
|
+
})(GgufFileType || (GgufFileType = {}));
|
|
172
|
+
export var GgufMetadataTokenizerTokenType;
|
|
173
|
+
(function (GgufMetadataTokenizerTokenType) {
|
|
174
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["undefined"] = 0] = "undefined";
|
|
175
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["normal"] = 1] = "normal";
|
|
176
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["unknown"] = 2] = "unknown";
|
|
177
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["control"] = 3] = "control";
|
|
178
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["userDefined"] = 4] = "userDefined";
|
|
179
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["unused"] = 5] = "unused";
|
|
180
|
+
GgufMetadataTokenizerTokenType[GgufMetadataTokenizerTokenType["byte"] = 6] = "byte";
|
|
181
|
+
})(GgufMetadataTokenizerTokenType || (GgufMetadataTokenizerTokenType = {}));
|
|
182
|
+
export var GgufMetadataArchitecturePoolingType;
|
|
183
|
+
(function (GgufMetadataArchitecturePoolingType) {
|
|
184
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["unspecified"] = -1] = "unspecified";
|
|
185
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["none"] = 0] = "none";
|
|
186
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["mean"] = 1] = "mean";
|
|
187
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["cls"] = 2] = "cls";
|
|
188
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["last"] = 3] = "last";
|
|
189
|
+
GgufMetadataArchitecturePoolingType[GgufMetadataArchitecturePoolingType["rank"] = 4] = "rank";
|
|
190
|
+
})(GgufMetadataArchitecturePoolingType || (GgufMetadataArchitecturePoolingType = {}));
|
|
191
|
+
export function isGgufMetadataOfArchitectureType(metadata, type) {
|
|
192
|
+
return metadata?.general?.architecture === type;
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=GgufMetadataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GgufMetadataTypes.js","sourceRoot":"","sources":["../../../src/gguf/types/GgufMetadataTypes.ts"],"names":[],"mappings":"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"}
|