Update README.md
Browse files
README.md
CHANGED
|
@@ -2,4 +2,107 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
datasets:
|
| 4 |
- nvidia/OpenScienceReasoning-2
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
datasets:
|
| 4 |
- nvidia/OpenScienceReasoning-2
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
base_model:
|
| 8 |
+
- Qwen/Qwen3-1.7B
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
+
library_name: transformers
|
| 11 |
+
tags:
|
| 12 |
+
- text-generation-inference
|
| 13 |
+
- trl
|
| 14 |
+
- medical
|
| 15 |
+
- biology
|
| 16 |
+
- science
|
| 17 |
+
- chemistry
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# **OpenScienceReasoning-Qwen-e10**
|
| 21 |
+
|
| 22 |
+
> **OpenScienceReasoning-Qwen-e10** is a specialized reasoning model fine-tuned on **Qwen3-1.7B**, leveraging the [**nvidia/OpenScienceReasoning-2**](https://huggingface.co/datasets/nvidia/OpenScienceReasoning-2) dataset.
|
| 23 |
+
> This dataset contributes **10,000 carefully curated entries** focusing on **scientific reasoning** and **chain-of-thought problem solving**, enhancing the model’s ability to explain, deduce, and generate structured outputs across STEM domains.
|
| 24 |
+
|
| 25 |
+
> \[!note]
|
| 26 |
+
> GGUF: [https://huggingface.co/prithivMLmods/OpenScienceReasoning-Qwen-e10-GGUF](https://huggingface.co/prithivMLmods/OpenScienceReasoning-Qwen-e10-GGUF)
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## **Key Features**
|
| 31 |
+
|
| 32 |
+
1. **Science-Centered Reasoning**
|
| 33 |
+
Fine-tuned on **10K entries from OpenScienceReasoning-2**, covering diverse scientific fields with explicit chain-of-thought annotations for robust logical inference.
|
| 34 |
+
|
| 35 |
+
2. **Enhanced Analytical Tutoring**
|
| 36 |
+
Explains concepts in physics, chemistry, biology, and mathematics with structured, step-by-step clarity.
|
| 37 |
+
|
| 38 |
+
3. **Advanced Code & Math Support**
|
| 39 |
+
Performs algorithmic reasoning, symbolic math derivations, and multi-language coding with debugging support.
|
| 40 |
+
|
| 41 |
+
4. **Chain-of-Thought Mastery**
|
| 42 |
+
Prioritizes transparent reasoning by decomposing problems into logical steps, ensuring explainability and precision.
|
| 43 |
+
|
| 44 |
+
5. **Multi-Format Structured Output**
|
| 45 |
+
Natively produces **LaTeX**, **Markdown**, **JSON**, and **YAML**, making it ideal for technical reports and data pipelines.
|
| 46 |
+
|
| 47 |
+
6. **Optimized for Mid-Resource Deployment**
|
| 48 |
+
Retains a lightweight footprint suitable for **mid-range GPUs**, **offline clusters**, and **edge AI systems** without sacrificing symbolic fidelity.
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
+
## **Quickstart with Transformers**
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 56 |
+
|
| 57 |
+
model_name = "prithivMLmods/OpenScienceReasoning-Qwen-e10"
|
| 58 |
+
|
| 59 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 60 |
+
model_name,
|
| 61 |
+
torch_dtype="auto",
|
| 62 |
+
device_map="auto"
|
| 63 |
+
)
|
| 64 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 65 |
+
|
| 66 |
+
prompt = "Explain how photosynthesis works using step-by-step reasoning."
|
| 67 |
+
|
| 68 |
+
messages = [
|
| 69 |
+
{"role": "system", "content": "You are a scientific tutor skilled in reasoning, math, and STEM explanations."},
|
| 70 |
+
{"role": "user", "content": prompt}
|
| 71 |
+
]
|
| 72 |
+
|
| 73 |
+
text = tokenizer.apply_chat_template(
|
| 74 |
+
messages,
|
| 75 |
+
tokenize=False,
|
| 76 |
+
add_generation_prompt=True
|
| 77 |
+
)
|
| 78 |
+
|
| 79 |
+
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
|
| 80 |
+
|
| 81 |
+
generated_ids = model.generate(
|
| 82 |
+
**model_inputs,
|
| 83 |
+
max_new_tokens=512
|
| 84 |
+
)
|
| 85 |
+
generated_ids = [
|
| 86 |
+
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
| 87 |
+
]
|
| 88 |
+
|
| 89 |
+
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
| 90 |
+
print(response)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
---
|
| 94 |
+
|
| 95 |
+
## **Intended Use**
|
| 96 |
+
|
| 97 |
+
* Scientific education and tutoring across STEM fields
|
| 98 |
+
* Chain-of-thought enhanced problem solving and explanation
|
| 99 |
+
* Structured technical documentation and data generation
|
| 100 |
+
* Algorithm synthesis, debugging, and mathematical derivations
|
| 101 |
+
* Deployment in research assistants and educational APIs
|
| 102 |
+
|
| 103 |
+
## **Limitations**
|
| 104 |
+
|
| 105 |
+
* Not designed for creative writing or casual conversation
|
| 106 |
+
* Limited to context window constraints—multi-document reasoning may be hindered
|
| 107 |
+
* Specialization in scientific reasoning may reduce performance on general-purpose chat
|
| 108 |
+
* Focuses on structured reasoning, not emotional tone generation.
|