Downloads · 30 days
7
8% of all-time downloads
kalkiai3000/yi34b-quantum-finetuned-subject-matter
yi34b-quantum-finetuned-subject-matter is a text generation model from kalkiai3000. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of Yi-1.5-34B-Chat specifically optimized for quantum physics instruction-following tasks. The model has been enhanced with dense domain and subdomain knowledge through structured fi…
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
83
Public
Parameters
34.4B
68.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors68.8 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Yi-1.5-34B-Chat specifically optimized for quantum physics instruction-following tasks. The model has been enhanced with dense domain and subdomain knowledge through structured fine-tuning on quantum physics problems with explicit subject matter context.
Unlike standard quantum AI models, this model incorporates explicit subject matter knowledge in its training process. Each training example includes:
This structured approach enables the model to:
The model was fine-tuned using QLoRA (Quantized Low-Rank Adaptation) with the following specifications:
q_proj, v_proj, k_proj, o_proj, gate_proj, up_proj, down_projkalkiai3000/quantum-llm-instruct-subject-knowledgeThis dataset contains structured quantum physics problems with the following schema:
{
"problem": "Quantum physics question or task",
"main_domain": "Primary field classification",
"sub_domain": "Specific subdomain",
"subject_knowledge": "Relevant background knowledge",
"solution": "Expert-level solution",
"uuid": "Unique identifier",
"timestamp": "Creation timestamp",
"model_name": "Source model information",
"solution_model_name": "Solution generation model"
}
Each training example follows this instruction template:
Problem: [Quantum physics question]
Domain: [main_domain]
Subdomain: [sub_domain]
Subject Knowledge: [relevant context]
Please provide the solution:
This format ensures the model learns to:
This model will be systematically evaluated against leading 32B parameter models:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("kalkiai3000/yi34b-quantum-finetuned-subject-matter")
model = AutoModelForCausalLM.from_pretrained(
"kalkiai3000/yi34b-quantum-finetuned-subject-matter",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
# Format your prompt with domain context
prompt = '''Problem: Explain quantum entanglement and its role in quantum computing.
Domain: Quantum Computing
Subdomain: Quantum Information Theory
Subject Knowledge: Quantum entanglement creates correlated quantum states between particles regardless of distance.
Please provide the solution:'''
# Generate response
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(formatted_prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
do_sample=True,
top_p=0.9
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
For best results, structure your prompts with explicit domain context:
This format leverages the model's specialized training and produces more accurate, contextually appropriate responses.
If you use this model in your research, please cite:
@misc{yi34b-quantum-finetuned-2025,
title={Yi-34B Quantum Fine-tuned with Subject Matter Knowledge},
author={KalkiAI},
year={2025},
publisher={Hugging Face},
journal={Hugging Face Model Hub},
howpublished={\url{https://huggingface.co/kalkiai3000/yi34b-quantum-finetuned-subject-matter}}
}
This model inherits the Apache-2.0 license from the base Yi-1.5-34B-Chat model. The fine-tuning code and datasets may have additional licensing terms.
Model trained and released by KalkiAI Research Team - Advancing AI for Scientific Discovery