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

本站现有博文337篇,共被浏览961696次

本站已经建立2673天!

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