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

本站现有博文335篇,共被浏览937555

本站已经建立2648天!

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