Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

llama-tokenizer-js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

llama-tokenizer-js - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "llama-tokenizer-js",
"version": "1.1.0",
"version": "1.1.1",
"description": "JS tokenizer for LLaMA-based LLMs",

@@ -5,0 +5,0 @@ "main": "llama-tokenizer.js",

@@ -55,3 +55,3 @@ # 🦙 llama-tokenizer-js 🦙

Special use case: decode only selected individual tokens, without including beginning of prompt token and preceeding space:
Note that special "beginning of sentence" token and preceding space are added by default when encoded (and correspondingly expected when decoding). These affect token count. There may be some use cases where you don't want to add these. You can pass additional boolean parameters in these use cases. For example, if you want to decode an individual token:

@@ -58,0 +58,0 @@ ```

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc