You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mkdocs.yml 16 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. site_name: LLamaSharp Documentation
  2. nav:
  3. - Overview: index.md
  4. - Quick Start: QuickStart.md
  5. - Architecture: Architecture.md
  6. - FAQ: FAQ.md
  7. - Contributing Guide: ContributingGuide.md
  8. - Tutorials:
  9. - Customize the native library loading: Tutorials/NativeLibraryConfig.md
  10. - Use executors: Tutorials/Executors.md
  11. - Use ChatSession: Tutorials/ChatSession.md
  12. - Understand LLamaContext: Tutorials/UnderstandLLamaContext.md
  13. - Get embeddings: Tutorials/GetEmbeddings.md
  14. - Quantize the model: Tutorials/Quantization.md
  15. - Integrations:
  16. - semantic-kernel integration: Integrations/semantic-kernel.md
  17. - kernel-memory integration: Integrations/kernel-memory.md
  18. - BotSharp integration: Integrations/BotSharp.md
  19. - Langchain integration: Integrations/Langchain.md
  20. - Examples:
  21. - Bacthed executor - multi-output to one input: Examples/BatchedExecutorFork.md
  22. - Batched executor - basic guidance: Examples/BatchedExecutorGuidance.md
  23. - Batched executor - rewinding to an earlier state: Examples/BatchedExecutorRewind.md
  24. - Chinese LLM - with GB2312 encoding: Examples/ChatChineseGB2312.md
  25. - ChatSession - stripping role names: Examples/ChatSessionStripRoleName.md
  26. - ChatSession - with history: Examples/ChatSessionWithHistory.md
  27. - ChatSession - restarting: Examples/ChatSessionWithRestart.md
  28. - ChatSession - Basic: Examples/ChatSessionWithRoleName.md
  29. - Coding assistant: Examples/CodingAssistant.md
  30. - Get embeddings: Examples/GetEmbeddings.md
  31. - Grammar - json response: Examples/GrammarJsonResponse.md
  32. - Instruct executor - basic: Examples/InstructModeExecute.md
  33. - Interactive executor - basic: Examples/InteractiveModeExecute.md
  34. - Kernel memory integration - basic: Examples/KernelMemory.md
  35. - Kernel-memory - save & load: Examples/KernelMemorySaveAndLoad.md
  36. - LLaVA - basic: Examples/LLavaInteractiveModeExecute.md
  37. - ChatSession - load & save: Examples/LoadAndSaveSession.md
  38. - Executor - save/load state: Examples/LoadAndSaveState.md
  39. - Quantization: Examples/QuantizeModel.md
  40. - Semantic-kernel - chat: Examples/SemanticKernelChat.md
  41. - Semantic-kernel - with kernel-memory: Examples/SemanticKernelMemory.md
  42. - Semantic-kernel - basic: Examples/SemanticKernelPrompt.md
  43. - Stateless executor: Examples/StatelessModeExecute.md
  44. - Talk to yourself: Examples/TalkToYourself.md
  45. - API Reference:
  46. - index: ./xmldocs/index.md
  47. - llama.abstractions.adaptercollection: ./xmldocs/llama.abstractions.adaptercollection.md
  48. - llama.abstractions.icontextparams: ./xmldocs/llama.abstractions.icontextparams.md
  49. - llama.abstractions.ihistorytransform: ./xmldocs/llama.abstractions.ihistorytransform.md
  50. - llama.abstractions.iinferenceparams: ./xmldocs/llama.abstractions.iinferenceparams.md
  51. - llama.abstractions.illamaexecutor: ./xmldocs/llama.abstractions.illamaexecutor.md
  52. - llama.abstractions.illamaparams: ./xmldocs/llama.abstractions.illamaparams.md
  53. - llama.abstractions.imodelparams: ./xmldocs/llama.abstractions.imodelparams.md
  54. - llama.abstractions.itextstreamtransform: ./xmldocs/llama.abstractions.itextstreamtransform.md
  55. - llama.abstractions.itexttransform: ./xmldocs/llama.abstractions.itexttransform.md
  56. - llama.abstractions.loraadapter: ./xmldocs/llama.abstractions.loraadapter.md
  57. - llama.abstractions.metadataoverride: ./xmldocs/llama.abstractions.metadataoverride.md
  58. - llama.abstractions.metadataoverrideconverter: ./xmldocs/llama.abstractions.metadataoverrideconverter.md
  59. - llama.abstractions.tensorsplitscollection: ./xmldocs/llama.abstractions.tensorsplitscollection.md
  60. - llama.abstractions.tensorsplitscollectionconverter: ./xmldocs/llama.abstractions.tensorsplitscollectionconverter.md
  61. - llama.antipromptprocessor: ./xmldocs/llama.antipromptprocessor.md
  62. - llama.batched.alreadypromptedconversationexception: ./xmldocs/llama.batched.alreadypromptedconversationexception.md
  63. - llama.batched.batchedexecutor: ./xmldocs/llama.batched.batchedexecutor.md
  64. - llama.batched.cannotforkwhilerequiresinferenceexception: ./xmldocs/llama.batched.cannotforkwhilerequiresinferenceexception.md
  65. - llama.batched.cannotmodifywhilerequiresinferenceexception: ./xmldocs/llama.batched.cannotmodifywhilerequiresinferenceexception.md
  66. - llama.batched.cannotsamplerequiresinferenceexception: ./xmldocs/llama.batched.cannotsamplerequiresinferenceexception.md
  67. - llama.batched.cannotsamplerequirespromptexception: ./xmldocs/llama.batched.cannotsamplerequirespromptexception.md
  68. - llama.batched.conversation: ./xmldocs/llama.batched.conversation.md
  69. - llama.batched.conversationextensions: ./xmldocs/llama.batched.conversationextensions.md
  70. - llama.batched.experimentalbatchedexecutorexception: ./xmldocs/llama.batched.experimentalbatchedexecutorexception.md
  71. - llama.chatsession-1: ./xmldocs/llama.chatsession-1.md
  72. - llama.chatsession: ./xmldocs/llama.chatsession.md
  73. - llama.common.authorrole: ./xmldocs/llama.common.authorrole.md
  74. - llama.common.chathistory: ./xmldocs/llama.common.chathistory.md
  75. - llama.common.fixedsizequeue-1: ./xmldocs/llama.common.fixedsizequeue-1.md
  76. - llama.common.inferenceparams: ./xmldocs/llama.common.inferenceparams.md
  77. - llama.common.mirostattype: ./xmldocs/llama.common.mirostattype.md
  78. - llama.common.modelparams: ./xmldocs/llama.common.modelparams.md
  79. - llama.exceptions.grammarexpectedname: ./xmldocs/llama.exceptions.grammarexpectedname.md
  80. - llama.exceptions.grammarexpectednext: ./xmldocs/llama.exceptions.grammarexpectednext.md
  81. - llama.exceptions.grammarexpectedprevious: ./xmldocs/llama.exceptions.grammarexpectedprevious.md
  82. - llama.exceptions.grammarformatexception: ./xmldocs/llama.exceptions.grammarformatexception.md
  83. - llama.exceptions.grammarunexpectedcharaltelement: ./xmldocs/llama.exceptions.grammarunexpectedcharaltelement.md
  84. - llama.exceptions.grammarunexpectedcharrngelement: ./xmldocs/llama.exceptions.grammarunexpectedcharrngelement.md
  85. - llama.exceptions.grammarunexpectedendelement: ./xmldocs/llama.exceptions.grammarunexpectedendelement.md
  86. - llama.exceptions.grammarunexpectedendofinput: ./xmldocs/llama.exceptions.grammarunexpectedendofinput.md
  87. - llama.exceptions.grammarunexpectedhexcharscount: ./xmldocs/llama.exceptions.grammarunexpectedhexcharscount.md
  88. - llama.exceptions.grammarunknownescapecharacter: ./xmldocs/llama.exceptions.grammarunknownescapecharacter.md
  89. - llama.exceptions.llamadecodeerror: ./xmldocs/llama.exceptions.llamadecodeerror.md
  90. - llama.exceptions.loadweightsfailedexception: ./xmldocs/llama.exceptions.loadweightsfailedexception.md
  91. - llama.exceptions.runtimeerror: ./xmldocs/llama.exceptions.runtimeerror.md
  92. - llama.extensions.icontextparamsextensions: ./xmldocs/llama.extensions.icontextparamsextensions.md
  93. - llama.extensions.imodelparamsextensions: ./xmldocs/llama.extensions.imodelparamsextensions.md
  94. - llama.grammars.grammar: ./xmldocs/llama.grammars.grammar.md
  95. - llama.grammars.grammarrule: ./xmldocs/llama.grammars.grammarrule.md
  96. - llama.ichatmodel: ./xmldocs/llama.ichatmodel.md
  97. - llama.llamacache: ./xmldocs/llama.llamacache.md
  98. - llama.llamaembedder: ./xmldocs/llama.llamaembedder.md
  99. - llama.llamamodel: ./xmldocs/llama.llamamodel.md
  100. - llama.llamamodelv1: ./xmldocs/llama.llamamodelv1.md
  101. - llama.llamaparams: ./xmldocs/llama.llamaparams.md
  102. - llama.llamaquantizer: ./xmldocs/llama.llamaquantizer.md
  103. - llama.llamastate: ./xmldocs/llama.llamastate.md
  104. - llama.llamatransforms: ./xmldocs/llama.llamatransforms.md
  105. - llama.llavaweights: ./xmldocs/llama.llavaweights.md
  106. - llama.native.decoderesult: ./xmldocs/llama.native.decoderesult.md
  107. - llama.native.ggmltype: ./xmldocs/llama.native.ggmltype.md
  108. - llama.native.gpusplitmode: ./xmldocs/llama.native.gpusplitmode.md
  109. - llama.native.llamabatch: ./xmldocs/llama.native.llamabatch.md
  110. - llama.native.llamabeamsstate: ./xmldocs/llama.native.llamabeamsstate.md
  111. - llama.native.llamabeamview: ./xmldocs/llama.native.llamabeamview.md
  112. - llama.native.llamachatmessage: ./xmldocs/llama.native.llamachatmessage.md
  113. - llama.native.llamacontextparams: ./xmldocs/llama.native.llamacontextparams.md
  114. - llama.native.llamaftype: ./xmldocs/llama.native.llamaftype.md
  115. - llama.native.llamagrammarelement: ./xmldocs/llama.native.llamagrammarelement.md
  116. - llama.native.llamagrammarelementtype: ./xmldocs/llama.native.llamagrammarelementtype.md
  117. - llama.native.llamakvcacheview: ./xmldocs/llama.native.llamakvcacheview.md
  118. - llama.native.llamakvcacheviewcell: ./xmldocs/llama.native.llamakvcacheviewcell.md
  119. - llama.native.llamakvcacheviewsafehandle: ./xmldocs/llama.native.llamakvcacheviewsafehandle.md
  120. - llama.native.llamaloglevel: ./xmldocs/llama.native.llamaloglevel.md
  121. - llama.native.llamamodelkvoverridetype: ./xmldocs/llama.native.llamamodelkvoverridetype.md
  122. - llama.native.llamamodelmetadataoverride: ./xmldocs/llama.native.llamamodelmetadataoverride.md
  123. - llama.native.llamamodelparams: ./xmldocs/llama.native.llamamodelparams.md
  124. - llama.native.llamamodelquantizeparams: ./xmldocs/llama.native.llamamodelquantizeparams.md
  125. - llama.native.llamanativebatch: ./xmldocs/llama.native.llamanativebatch.md
  126. - llama.native.llamapoolingtype: ./xmldocs/llama.native.llamapoolingtype.md
  127. - llama.native.llamapos: ./xmldocs/llama.native.llamapos.md
  128. - llama.native.llamaropetype: ./xmldocs/llama.native.llamaropetype.md
  129. - llama.native.llamaseqid: ./xmldocs/llama.native.llamaseqid.md
  130. - llama.native.llamatoken: ./xmldocs/llama.native.llamatoken.md
  131. - llama.native.llamatokendata: ./xmldocs/llama.native.llamatokendata.md
  132. - llama.native.llamatokendataarray: ./xmldocs/llama.native.llamatokendataarray.md
  133. - llama.native.llamatokendataarraynative: ./xmldocs/llama.native.llamatokendataarraynative.md
  134. - llama.native.llamatokentype: ./xmldocs/llama.native.llamatokentype.md
  135. - llama.native.llamavocabtype: ./xmldocs/llama.native.llamavocabtype.md
  136. - llama.native.llavaimageembed: ./xmldocs/llama.native.llavaimageembed.md
  137. - llama.native.nativeapi: ./xmldocs/llama.native.nativeapi.md
  138. - llama.native.nativelibraryconfig: ./xmldocs/llama.native.nativelibraryconfig.md
  139. - llama.native.ropescalingtype: ./xmldocs/llama.native.ropescalingtype.md
  140. - llama.native.safellamacontexthandle: ./xmldocs/llama.native.safellamacontexthandle.md
  141. - llama.native.safellamagrammarhandle: ./xmldocs/llama.native.safellamagrammarhandle.md
  142. - llama.native.safellamahandlebase: ./xmldocs/llama.native.safellamahandlebase.md
  143. - llama.native.safellamamodelhandle: ./xmldocs/llama.native.safellamamodelhandle.md
  144. - llama.native.safellavaimageembedhandle: ./xmldocs/llama.native.safellavaimageembedhandle.md
  145. - llama.native.safellavamodelhandle: ./xmldocs/llama.native.safellavamodelhandle.md
  146. - llama.quantizer: ./xmldocs/llama.quantizer.md
  147. - llama.sampling.basesamplingpipeline: ./xmldocs/llama.sampling.basesamplingpipeline.md
  148. - llama.sampling.defaultsamplingpipeline: ./xmldocs/llama.sampling.defaultsamplingpipeline.md
  149. - llama.sampling.greedysamplingpipeline: ./xmldocs/llama.sampling.greedysamplingpipeline.md
  150. - llama.sampling.isamplingpipeline: ./xmldocs/llama.sampling.isamplingpipeline.md
  151. - llama.sampling.isamplingpipelineextensions: ./xmldocs/llama.sampling.isamplingpipelineextensions.md
  152. - llama.sampling.mirostate2samplingpipeline: ./xmldocs/llama.sampling.mirostate2samplingpipeline.md
  153. - llama.sampling.mirostatesamplingpipeline: ./xmldocs/llama.sampling.mirostatesamplingpipeline.md
  154. - llama.sessionstate: ./xmldocs/llama.sessionstate.md
  155. - llama.streamingtokendecoder: ./xmldocs/llama.streamingtokendecoder.md
  156. - llama.types.chatcompletion: ./xmldocs/llama.types.chatcompletion.md
  157. - llama.types.chatcompletionchoice: ./xmldocs/llama.types.chatcompletionchoice.md
  158. - llama.types.chatcompletionchunk: ./xmldocs/llama.types.chatcompletionchunk.md
  159. - llama.types.chatcompletionchunkchoice: ./xmldocs/llama.types.chatcompletionchunkchoice.md
  160. - llama.types.chatcompletionchunkdelta: ./xmldocs/llama.types.chatcompletionchunkdelta.md
  161. - llama.types.chatcompletionmessage: ./xmldocs/llama.types.chatcompletionmessage.md
  162. - llama.types.chatmessagerecord: ./xmldocs/llama.types.chatmessagerecord.md
  163. - llama.types.chatrole: ./xmldocs/llama.types.chatrole.md
  164. - llama.types.completion: ./xmldocs/llama.types.completion.md
  165. - llama.types.completionchoice: ./xmldocs/llama.types.completionchoice.md
  166. - llama.types.completionchunk: ./xmldocs/llama.types.completionchunk.md
  167. - llama.types.completionlogprobs: ./xmldocs/llama.types.completionlogprobs.md
  168. - llama.types.completionusage: ./xmldocs/llama.types.completionusage.md
  169. - llama.types.embedding: ./xmldocs/llama.types.embedding.md
  170. - llama.types.embeddingdata: ./xmldocs/llama.types.embeddingdata.md
  171. - llama.types.embeddingusage: ./xmldocs/llama.types.embeddingusage.md
  172. - logger: ./xmldocs/logger.md
  173. theme:
  174. name: material
  175. static_templates:
  176. - 404.html
  177. language: 'en'
  178. palette:
  179. # Palette toggle for light mode
  180. - media: "(prefers-color-scheme: light)"
  181. scheme: default
  182. primary: white
  183. accent: red
  184. toggle:
  185. icon: material/weather-sunny
  186. name: Switch to dark mode
  187. # Palette toggle for dark mode
  188. - media: "(prefers-color-scheme: dark)"
  189. scheme: slate
  190. primary: blue
  191. accent: blue
  192. toggle:
  193. icon: material/weather-night
  194. name: Switch to light mode
  195. include_search_page: false
  196. search_index_only: true
  197. favicon: 'media/icon128.png'
  198. icon:
  199. logo: 'material/file-document'
  200. features:
  201. - content.action.edit
  202. - navigation.instant
  203. font:
  204. text: 'Fira Sans'
  205. code: 'Fira Mono'
  206. extra:
  207. version:
  208. provider: mike
  209. extra_css:
  210. - 'css/extra.css?v=14'
  211. markdown_extensions:
  212. - admonition
  213. - def_list
  214. - footnotes
  215. - meta
  216. - toc:
  217. permalink: ""
  218. slugify: !!python/name:pymdownx.slugs.uslugify
  219. - pymdownx.arithmatex:
  220. generic: true
  221. - pymdownx.caret
  222. - pymdownx.critic
  223. - pymdownx.details
  224. - pymdownx.emoji:
  225. emoji_generator: !!python/name:pymdownx.emoji.to_svg
  226. - pymdownx.highlight:
  227. linenums: true
  228. - pymdownx.inlinehilite
  229. - pymdownx.keys
  230. - pymdownx.magiclink
  231. - pymdownx.mark
  232. - pymdownx.snippets:
  233. check_paths: true
  234. - pymdownx.progressbar
  235. - pymdownx.smartsymbols
  236. - pymdownx.superfences:
  237. custom_fences:
  238. - name: math
  239. class: arithmatex
  240. format: !!python/name:pymdownx.arithmatex.fence_mathjax_format
  241. - pymdownx.tasklist:
  242. custom_checkbox: true
  243. - pymdownx.tilde
  244. - pymdownx.tabbed:
  245. alternate_style: true