Downloads · 30 days
14
13% of all-time downloads
Shinapri/Matellem-Gemma3n-E2B-Graphene-1
Matellem-Gemma3n-E2B-Graphene-1 is a question answering model from Shinapri. Use it when the input is a question plus a passage. It is set up for transformers. The card lists the license as mit.
A fine-tuned language model, part of the Matellem project, specialized for multi-task analysis of scientific literature in the field of graphene research.
Downloads · 30 days
14
13% of all-time downloads
All-time downloads
107
Public
Parameters
5.4B
10.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors10.9 GB · 100%
From the Hugging Face model README
A fine-tuned language model, part of the Matellem project, specialized for multi-task analysis of scientific literature in the field of graphene research.
The field of materials science, particularly research into graphene, is expanding at an incredible rate. The sheer volume of published literature makes it challenging for researchers to stay updated and find specific information efficiently.
Matellem is designed to address this challenge. This model, built upon Google's powerful and efficient gemma-3n-E2B-it, has been specifically fine-tuned to understand the complex language, nuances, and key concepts within graphene-related scientific abstracts. It serves as a specialized tool to accelerate the research process through precise data extraction, summarization, and question answering.
google/gemma-3n-E2B-itq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) to adapt the model to the specific domain while preserving its core capabilities.bf16 precision for stability and speed, with the adamw_8bit optimizer.This model is designed to perform a variety of tasks related to scientific literature analysis:
from transformers import AutoTokenizer, AutoModelForCausalLM, TextStreamer
import torch
model_id = "Shinapri/Matellem-Gemma3n-E2B-Graphene-1"
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto").eval()
tokenizer = AutoTokenizer.from_pretrained(model_id)
INSTRUCTION = "You are a scientific literature search expert. Your task is to suggest a likely title for a research paper based on the user's description."
USER_INPUT = """I'm trying to recall the title of a review paper I read.
It discussed the applications of graphene specifically in the field of neuroscience,
covering two main areas: its use as a carrier for drug delivery and as a conductive substrate for tissue engineering.
Can you suggest a likely title?"""
messages = [
{"role": "system", "content": [{"type": "text", "text": INSTRUCTION}]},
{"role": "user", "content": [{"type": "text", "text": USER_INPUT}]},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
streamer = TextStreamer(tokenizer, skip_prompt=True)
with torch.no_grad():
_ = model.generate(
**inputs,
streamer=streamer,
do_sample=True,
max_new_tokens=1024,
top_p=0.9,
temperature=0.7
)
Example Output & Evaluation Note:
The model's response for this query is highly relevant:
> Based on your description, a likely title for the review paper is: **Graphene in Neuroscience: Applications in Drug Delivery and Tissue Engineering**
intfloat/e5-large model.This fine-tuned model is the core component of the larger Matellem project. The next major step is to integrate it into an agentic framework.
– Model processed by: Shinapri
– GitHub: https://github.com/ShinapriLN