# tokens
5 articlestagged with “tokens”
Token Optimizer Techniques
Implementing token-level optimization algorithms for discovering adversarial inputs, including GCG, AutoDAN, and custom gradient-based approaches.
exploit-devtokensoptimizationadversarial
Token Counting and Estimation
Understand tokenization by counting and estimating tokens across different models and encoders.
labstokenscountingbeginner
Lab: Token Manipulation Basics
Understand how tokenization affects LLM behavior and practice basic token-level manipulation techniques.
labstokensmanipulationbeginner
Token-Level Adversarial Attacks
Using gradient-based optimization and token manipulation to discover adversarial suffixes that reliably trigger unsafe model behavior.
prompt-injectiontokensadversarialGCG
AI Rate Limiting Walkthrough
Step-by-step walkthrough for implementing token-aware rate limiting for AI applications: request-level limiting, token budget enforcement, sliding window algorithms, abuse detection, and production deployment.
rate-limitingdefenseabuse-preventiontokensthrottlingimplementationwalkthrough