![]() |
VOOZH | about |
dotnet add package Microsoft.ML.Tokenizers.Data.O200kBase --version 2.0.0
NuGet\Install-Package Microsoft.ML.Tokenizers.Data.O200kBase -Version 2.0.0
<PackageReference Include="Microsoft.ML.Tokenizers.Data.O200kBase" Version="2.0.0" />
<PackageVersion Include="Microsoft.ML.Tokenizers.Data.O200kBase" Version="2.0.0" />Directory.Packages.props
<PackageReference Include="Microsoft.ML.Tokenizers.Data.O200kBase" />Project file
paket add Microsoft.ML.Tokenizers.Data.O200kBase --version 2.0.0
#r "nuget: Microsoft.ML.Tokenizers.Data.O200kBase, 2.0.0"
#:package Microsoft.ML.Tokenizers.Data.O200kBase@2.0.0
#addin nuget:?package=Microsoft.ML.Tokenizers.Data.O200kBase&version=2.0.0Install as a Cake Addin
#tool nuget:?package=Microsoft.ML.Tokenizers.Data.O200kBase&version=2.0.0Install as a Cake Tool
The Microsoft.ML.Tokenizers.Data.O200kBase includes the Tiktoken tokenizer data file o200k_base.tiktoken, which is utilized by models such as Gpt-4o.
Reference this package in your project to use the Tiktoken tokenizer with the specified model.
// Create a tokenizer for the specified model
Tokenizer tokenizer = TiktokenTokenizer.CreateForModel("Gpt-4o");
// Create a tokenizer for the specified encoding
Tokenizer tokenizer = TiktokenTokenizer.CreateForEncoding("o200k_base");
Users shouldn't use any types exposed by this package directly. This package is intended to provide tokenizer data files.
Microsoft.ML.Tokenizers
Microsoft.ML.Tokenizers.Data.O200kBase is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Microsoft.ML.Tokenizers.Data.O200kBase:
| Package | Downloads |
|---|---|
|
Microsoft.KernelMemory.AI.Tiktoken
Provide tokenizers to allow counting content tokens for text and embeddings |
|
|
ImmediaC.SimpleCms
ASP.NET Core based CMS |
|
|
Microsoft.Agents.Extensions.Teams.AI
Library for creating AI Teams agents using Microsoft Agent SDK |
|
|
MDev.Dotnet.SemanticKernel
Helper framework around the semantic kernel that let you to quickly start a project with AI orchestrator |
|
|
CodeBlock.DevKit.AIChatBot
CodeBlock Development Kit |
Showing the top 9 popular GitHub repositories that depend on Microsoft.ML.Tokenizers.Data.O200kBase:
| Repository | Stars |
|---|---|
|
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
|
|
|
microsoft/kernel-memory
Research project. A Memory solution for users, teams, and applications.
|
|
|
sdcb/chats
A powerful and flexible frontend & AI gateway for large language models, supporting 21+ mainstream AI model providers.
|
|
|
managedcode/dotnet-skills
Installable .NET skill catalog and CLI for Codex, Claude Code, GitHub Copilot, and Gemini.
|
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
|
alnkesq/AppViewLite
A Bluesky appview focused on low resource consumption
|
|
|
microsoft/Agents-for-net
This repository is for active development of the Microsoft 365 Agent SDK components for .NET
|
|
|
daniel3303/Equibles
An open-source, self-hosted mini Bloomberg Terminal for AI agents — SEC filings, institutional holdings, insider trading, congressional trades, and short data from a single self-hosted stack.
|
|
|
marcominerva/SqlDatabaseVectorSearch
A Blazor Web App and Minimal API for performing RAG (Retrieval Augmented Generation) and vector search using the native VECTOR type in Azure SQL Database and Azure OpenAI.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-preview.26160.2 | 12,531 | 3/12/2026 |
| 2.0.0 | 535,859 | 11/11/2025 |
| 2.0.0-preview.25527.5 | 27,582 | 10/29/2025 |
| 2.0.0-preview.25503.2 | 7,660 | 10/3/2025 |
| 2.0.0-preview.25373.1 | 18,561 | 7/28/2025 |
| 2.0.0-preview.1.25127.4 | 52,619 | 2/28/2025 |
| 2.0.0-preview.1.25125.4 | 357 | 2/25/2025 |
| 1.0.3 | 64,612 | 10/28/2025 |
| 1.0.2 | 860,094 | 2/26/2025 |
| 1.0.1 | 270,931 | 1/15/2025 |
| 1.0.0 | 868,089 | 11/14/2024 |
| 0.22.0 | 14,663 | 11/13/2024 |
| 0.22.0-preview.24526.1 | 1,590 | 10/27/2024 |
| 0.22.0-preview.24522.7 | 1,086 | 10/23/2024 |