EADST

Check the Index and Token from Tiktoken

Check the Index and Token from Tiktoken

import base64
path = "/home/your_dict_path.tiktoken"
f = open(path, "rb").read()
index = 0
for line in f.splitlines():
    l = line.split()
    print("index: ", l[1])
    print("encode: ", l[0])
    print("decode: ", base64.b64decode(l[0]))
    index += 1
    if index > 20:
        break

Reference Code

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Transformers llama.cpp Git Jupyter AI Quantize RGB 递归学习法 搞笑 Clash NLP Qwen2.5 LLAMA API网关 Harness Linux Michelin Review 算法题 财报 CSV OpenAI uWSGI Quantization Django 阿里云 LeetCode Tensor Proxy Interview Markdown VSCode transformers 净利润 diffusers 飞书 ModelScope News SQL IndexTTS2 GPTQ LoRA GoogLeNet Bin Pillow Gemma CEIR 腾讯云 SQLite Image2Text torchinfo Data PDF CAM Knowledge Permission Google 顶会 强化学习 Website Vmess Pickle API Land Math Miniforge 域名 Anaconda tar Llama Color 多进程 第一性原理 Zip QWEN Tracking mmap 论文速读 BTC Ptyhon TTS Safetensors SAM Cloudreve 关于博主 Jetson 论文 PyTorch logger MD5 Translation 公式 Rebuttal FP32 HuggingFace Augmentation PyCharm tqdm Hotel FlashAttention Agent RAR TensorFlow 版权 多线程 报税 Plotly Breakpoint Hungarian uwsgi CTC InvalidArgumentError Paddle HaggingFace Python Mixtral NLTK Disk 图标 git-lfs printf GIT Excel Qwen2 YOLO OCR DeepStream 图形思考法 Windows ONNX NameSilo CUDA FP16 Template Web ResNet-50 VGG-16 Nginx Jev RL Freesound Password Card Input ms-swift JSON 继承 DeepSeek CV PIP Streamlit v2ray Dataset FP64 ChatGPT Baidu Conda icon Pytorch Attention Use Base64 Food 云服务器 Statistics Algorithm 签证 Bitcoin Vim Hilton Tiktoken Bert LaTeX Qwen Search Logo Numpy hf COCO PDB Pandas git OpenCV Github Diagram Video CC TensorRT SPIE SVR scipy Plate UI v0.dev Ubuntu Paper Claude BF16 Bipartite EXCEL UNIX XGBoost Crawler 音频 Firewall TSV Random Datetime C++ Heatmap WebCrawler XML FP8 证件照 CLAP Shortcut Sklearn VPN GGML WAN Distillation GPT4 Domain Magnet LLM Animate BeautifulSoup Docker FastAPI
站点统计

本站现有博文338篇,共被浏览978092次

本站已经建立2690天!

热门文章
文章归档
回到顶部