Downloads · 30 days
8
100% of all-time downloads
FFZwai/leyoai-analytics-medium
leyoai-analytics-medium is a machine learning model from FFZwai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
8
100% of all-time downloads
All-time downloads
8
Public
Repo size
131 MB
Likes
0
Public
Click a slice to open those files.
.safetensors120 MB · 91%
From the Hugging Face model README
English | 中文
Enhanced data analytics and SQL generation assistant
pip install transformers peft torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "FFZwai/leyoai-analytics-medium")
# Generate response
input_text = "Your question here"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
增强版数据分析和 SQL 生成助手
pip install transformers peft torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# 加载基座模型
base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
# 加载 LoRA 适配器
model = PeftModel.from_pretrained(base_model, "FFZwai/leyoai-analytics-medium")
# 生成回复
input_text = "你的问题"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
LeyoAI is an AI MaaS platform by 杭州市上城区乐友信息服务工作室, providing specialized AI assistants for cybersecurity, video safety, workflow automation, and data analytics.
Website: https://leyoai.vercel.app