microsoft/Tokenizer
소개
Typescript and .NET implementation of BPE tokenizer for OpenAI LLMs.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTokenizer
This repo contains Typescript and C# implementation of byte pair encoding(BPE) tokenizer for OpenAI LLMs, it's based on open sourced rust implementation in the OpenAI tiktoken. Both implementation are valuable to run prompt tokenization in Nodejs and .NET environment before feeding prompt into a LLM.
Typescript implementation
Please follow README.
C# implementation
[!IMPORTANT] Users of
Microsoft.DeepDev.TokenizerLibshould migrate toMicrosoft.ML.Tokenizers. The functionality inMicrosoft.DeepDev.TokenizerLibhas been added toMicrosoft.ML.Tokenizers.Microsoft.ML.Tokenizersis a tokenizer library being developed by the .NET team and going forward, the central place for tokenizer development in .NET. By usingMicrosoft.ML.Tokenizers, you should see improved performance over existing tokenizer library implementations, includingMicrosoft.DeepDev.TokenizerLib. A stable release ofMicrosoft.ML.Tokenizersis expected alongside the .NET 9.0 release (November 2024). Instructions for migration can be found at https://github.com/dotnet/machinelearning/blob/main/docs/code/microsoft-ml-tokenizers-migration-guide.md.
Contributing
We welcome contributions. Please follow this guideline.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
관련 프로젝트 살펴보기
불러오는 중…