Text Generation
Transformers
Safetensors
English
qwen3
trl
text-generation-inference
medical
science
conversational
Instructions to use prithivMLmods/OpenScienceReasoning-Qwen-e10 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/OpenScienceReasoning-Qwen-e10 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/OpenScienceReasoning-Qwen-e10") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("prithivMLmods/OpenScienceReasoning-Qwen-e10") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/OpenScienceReasoning-Qwen-e10") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prithivMLmods/OpenScienceReasoning-Qwen-e10 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/OpenScienceReasoning-Qwen-e10" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OpenScienceReasoning-Qwen-e10", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/OpenScienceReasoning-Qwen-e10
- SGLang
How to use prithivMLmods/OpenScienceReasoning-Qwen-e10 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "prithivMLmods/OpenScienceReasoning-Qwen-e10" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OpenScienceReasoning-Qwen-e10", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "prithivMLmods/OpenScienceReasoning-Qwen-e10" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/OpenScienceReasoning-Qwen-e10", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/OpenScienceReasoning-Qwen-e10 with Docker Model Runner:
docker model run hf.co/prithivMLmods/OpenScienceReasoning-Qwen-e10
| license: apache-2.0 | |
| datasets: | |
| - nvidia/OpenScienceReasoning-2 | |
| language: | |
| - en | |
| base_model: | |
| - Qwen/Qwen3-1.7B | |
| pipeline_tag: text-generation | |
| library_name: transformers | |
| tags: | |
| - trl | |
| - text-generation-inference | |
| - medical | |
| - science | |
|  | |
| # **OpenScienceReasoning-Qwen-e10** | |
| > OpenScienceReasoning-Qwen-e10 is a high-efficiency, science-focused reasoning model fine-tuned on **Qwen3-1.7B** using the [**nvidia/OpenScienceReasoning-2**](https://huggingface.co/datasets/nvidia/OpenScienceReasoning-2) dataset. It incorporates **10,000 distinct entries** for scientific reasoning, chain-of-thought exploration, and analytical problem solving. | |
| > The model blends symbolic precision, scientific logic, and structured output fluency—making it an ideal tool for researchers, educators, and developers seeking advanced reasoning under constrained compute. | |
| > \[!note] | |
| > GGUF: [https://huggingface.co/prithivMLmods/OpenScienceReasoning-Qwen-e10-GGUF](https://huggingface.co/prithivMLmods/OpenScienceReasoning-Qwen-e10-GGUF) | |
| --- | |
| ## **Key Features** | |
| 1. **Scientific Reasoning & Chain-of-Thought** | |
| Fine-tuned on **10,000 curated entries** from the **OpenScienceReasoning-2** dataset, designed to enhance step-by-step analytical reasoning in science and mathematics. | |
| 2. **Advanced Code Reasoning & Generation** | |
| Supports multi-language coding with explanations, optimization hints, and error detection—ideal for algorithm synthesis, debugging, and prototyping. | |
| 3. **Mathematical & Scientific Problem Solving** | |
| Performs analytical reasoning in physics, biology, chemistry, and mathematics—explaining concepts, solving equations, and handling symbolic derivations. | |
| 4. **Hybrid Symbolic-AI Thinking** | |
| Combines structured logic, chain-of-thought reasoning, and open-ended inference, delivering robust performance on STEM-related tasks. | |
| 5. **Structured Output Mastery** | |
| Seamlessly generates output in **LaTeX**, **Markdown**, **JSON**, **CSV**, and **YAML**, suited for technical documentation, research papers, and structured data. | |
| 6. **Optimized Lightweight Footprint for Versatile Deployment** | |
| Balances performance and efficiency, making it deployable on **mid-range GPUs**, **offline clusters**, and **edge AI systems**. | |
| --- | |
| ## **Quickstart with Transformers** | |
| ```python | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| model_name = "prithivMLmods/OpenScienceReasoning-Qwen-e10" | |
| model = AutoModelForCausalLM.from_pretrained( | |
| model_name, | |
| torch_dtype="auto", | |
| device_map="auto" | |
| ) | |
| tokenizer = AutoTokenizer.from_pretrained(model_name) | |
| prompt = "Explain the difference between Newtonian mechanics and quantum mechanics with examples." | |
| messages = [ | |
| {"role": "system", "content": "You are a scientific tutor skilled in reasoning, math, and coding."}, | |
| {"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 | |
| ) | |
| generated_ids = [ | |
| output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids) | |
| ] | |
| response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0] | |
| print(response) | |
| ``` | |
| --- | |
| ## **Intended Use** | |
| * Scientific tutoring, computational reasoning, and mathematical education | |
| * Research assistant for physics, chemistry, biology, and interdisciplinary domains | |
| * Structured technical data generation in multiple formats | |
| * STEM-focused chatbot or API for research and education tools | |
| * Deployment in mid-resource environments requiring high reasoning fidelity | |
| ## **Limitations** | |
| * Not tuned for general-purpose or long-form creative writing | |
| * Context limitations may hinder multi-document or full codebase analysis | |
| * Specialized for scientific and technical reasoning—general chat may underperform | |
| * Prioritizes structured logic over casual or emotional tone generation |