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

本站现有博文332篇,共被浏览900576

本站已经建立2602天!

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