Downloads · 30 days
82
29% of all-time downloads
Etude-AI/Etude-LLMv0.2
Etude-LLMv0.2 is a text generation model from Etude-AI. Use it when you need the model to write or continue text. The card lists the license as mit.
<p align="center" <a href="https://github.com/Love-Asuka/Etude-LLM" <img src="https://img.shields.io/badge/GitHub-Repository-blue" alt="GitHub Repository" </a <a href="LICENSE" <img src="https://img.shields.io/badge/L…
Downloads · 30 days
82
29% of all-time downloads
All-time downloads
283
Public
Repo size
661 MB
Likes
2
Public
Click a slice to open those files.
.bin220 MB · 99%
From the Hugging Face model README
pytorch_model.bin:模型权重(FP32)。config.json:模型结构与元信息(已转换为 Llama 格式)。tokenizer.json、tokenizer_config.json、special_tokens_map.json:分词器文件与特殊符号映射。chat_template.jinja:聊天模板(可选,用于标准化对话格式)。from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "Etude-AI/Etude-LLMv0.2"
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=True)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto")
inputs = tokenizer("你好,帮我写一首诗。", return_tensors="pt")
filtered_inputs = {k: v for k, v in inputs.items() if k != 'token_type_ids'}
outputs = model.generate(**filtered_inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
tool/convert_hf.py 将 Etude 原生权重与配置转换为 Llama 兼容格式,并复制分词器与模板文件到输出目录。LICENSE 文件或模型页面的许可说明。