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

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

本站已经建立2669天!

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