Downloads · 30 days
17
46% of all-time downloads
Ganlen233/Sensor-Material-Expert-Qwen2.5-7B
Sensor-Material-Expert-Qwen2.5-7B is a machine learning model from Ganlen233. 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.
--- language: - zh - en tags: - materials-science - sensors - qwen - chemistry basemodel: Qwen/Qwen2.5-7B --- Sensor-Material-Expert-Qwen2.5-7B 是一款专注于传感器材料领域的专家级大语言模型。该模型基于 Qwen2.5-7B,通过大规模传感器科学文献、材料属性数据及实验报告进行精调(SFT/…
Downloads · 30 days
17
46% of all-time downloads
All-time downloads
37
Public
Parameters
7.6B
15.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
language:
Sensor-Material-Expert-Qwen2.5-7B 是一款专注于传感器材料领域的专家级大语言模型。该模型基于 Qwen2.5-7B,通过大规模传感器科学文献、材料属性数据及实验报告进行精调(SFT/LoRA),旨在辅助研究人员进行材料筛选、性能预测及机理分析。
Sensor-Material-Expert-Qwen2.5-7B is an expert-level LLM specialized in the field of sensor materials. Based on Qwen2.5-7B, it has been fine-tuned on a large-scale corpus of sensor science literature, material property datasets, and experimental reports, aiming to assist researchers in material screening, performance prediction, and mechanism analysis.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "Ganlen233/Sensor-Material-Expert-Qwen2.5-7B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
prompt = "请解释掺杂对氧化锡(SnO2)基气体传感器在检测甲醛时的灵敏度影响机理。"
messages = [
{"role": "system", "content": "你是一个材料科学专家,专注于传感器材料的研究。"},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)