Downloads · 30 days
0
vtt-qsts-ai/Mistral-7B-Instruct-v0.3-ft-stip-orig_label-validator
Mistral-7B-Instruct-v0.3-ft-stip-orig_label-validator is a machine learning model from vtt-qsts-ai. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model is a fine-tuned large language model used as a label validator for Science, Technology and Innovation (STI) policy monitoring in an OECD STIP Compass–style setting.
Downloads · 30 days
0
Access
Public
Updated Jan 23, 2026
Repo size
672 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 97%
From the Hugging Face model README
This model is a fine-tuned large language model used as a label validator for Science, Technology and Innovation (STI) policy monitoring in an OECD STIP Compass–style setting.
Given:
the model answers strictly with "Yes" or "No" to indicate whether the evidence supports that label.
Core characteristics:
Yes / No) of STI policy labels"Yes" or "No" as the first generated token(s) after the answer cue⚠️ This model is designed as a decision-support component in a human-in-the-loop pipeline, not as a fully automated policy encoder.
The model is intended to act as a validator in a hybrid semantic–generative workflow for STI policy monitoring:
Typical use cases:
The model was fine-tuned on a dataset of institutional policy web pages and corresponding multi-label annotations derived from a structured STI taxonomy (e.g., Policy Instruments, Target Groups, and Themes).
Each example is labeled:
"Yes" if the label is in the gold annotation for that initiative"No" otherwiseThe model is fine-tuned using parameter-efficient fine-tuning (LoRA or QLoRA):
"Yes" / "No"2e-4Below is a minimal example using transformers and peft.
You only need to change the model_id to your model name.
pip install transformers peft accelerate sentencepiece
### 2. Load the model and tokenizer
from transformers import AutoTokenizer
from peft import AutoPeftModelForCausalLM
# Change this to your model repo name
model_id = "vtt-qsts-ai/Mistral-7B-Instruct-v0.3-ft-stip-orig_label-validator"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoPeftModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
)
model.eval()
### 3. Building Prompt
label_code = "Label..."
label_title = "title..."
label_def = "Label Def..."
evidence_sentences = [
"Sent 1...",
"Sent 2...",
]
bullets = "\n".join(f"- {s}" for s in evidence_sentences)
prompt = f"""You are an expert in Science, Technology and Innovation (STI) policy.
Decide whether the evidence sentences describe the following policy label.
Label: {label_code} - {label_title} - {label_def}
Evidence sentences:
{bullets}
Answer strictly with 'Yes' or 'No'. Return 'Yes' only if the evidence clearly
matches the definition of the label, return 'No' otherwise.
Answer:"""
### 4. Get a Yes/No decision
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=2,
do_sample=False,
temperature=0.0,
)
generated = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[1]:],
skip_special_tokens=True,
).strip()
print("Model answer:", generated) # Expected: "Yes" or "No"
Coming soon...