Text Generation
Transformers
Safetensors
English
Hindi
qwen2
space
isro
nasa
aditya-l1
chandrayaan-3
oceansat-3
calcofi
oceanography
sentinel-1
sar
radar
flood
astrophysics
astronomy
cosmology
remote-sensing
kepler
exoplanet
heliophysics
qlora
fp16
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use Anoopsingh53/ISRO-SpaceAI-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anoopsingh53/ISRO-SpaceAI-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Anoopsingh53/ISRO-SpaceAI-7B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Anoopsingh53/ISRO-SpaceAI-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("Anoopsingh53/ISRO-SpaceAI-7B-Instruct", device_map="auto") 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 Anoopsingh53/ISRO-SpaceAI-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anoopsingh53/ISRO-SpaceAI-7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anoopsingh53/ISRO-SpaceAI-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anoopsingh53/ISRO-SpaceAI-7B-Instruct
- SGLang
How to use Anoopsingh53/ISRO-SpaceAI-7B-Instruct 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 "Anoopsingh53/ISRO-SpaceAI-7B-Instruct" \ --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": "Anoopsingh53/ISRO-SpaceAI-7B-Instruct", "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 "Anoopsingh53/ISRO-SpaceAI-7B-Instruct" \ --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": "Anoopsingh53/ISRO-SpaceAI-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Anoopsingh53/ISRO-SpaceAI-7B-Instruct with Docker Model Runner:
docker model run hf.co/Anoopsingh53/ISRO-SpaceAI-7B-Instruct
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -33,7 +33,7 @@ datasets:
|
|
| 33 |
pipeline_tag: text-generation
|
| 34 |
library_name: transformers
|
| 35 |
model-index:
|
| 36 |
-
- name: SpaceAI-
|
| 37 |
results:
|
| 38 |
- task:
|
| 39 |
type: text-generation
|
|
@@ -58,7 +58,7 @@ model-index:
|
|
| 58 |
|
| 59 |
<div align="center">
|
| 60 |
|
| 61 |
-
# 🛰️ SpaceAI-
|
| 62 |
### **An Empirical Foundation Intelligence for Heliophysics, Marine Hydrosphere & Planetary Observation**
|
| 63 |
|
| 64 |
[](https://opensource.org/licenses/Apache-2.0)
|
|
@@ -76,7 +76,7 @@ model-index:
|
|
| 76 |
|
| 77 |
## Executive Abstract
|
| 78 |
|
| 79 |
-
**SpaceAI-
|
| 80 |
|
| 81 |
Fine-tuned on curated astrophysical literature and multi-spectral sensor manifolds via **4-bit NormalFloat (NF4) QLoRA with full IEEE FP16 weight safe-merging**, SpaceAI delivers high factual grounding, sub-second latency, and zero-hallucination domain inference.
|
| 82 |
|
|
@@ -106,7 +106,7 @@ Evaluated across standardized scientific NLP benchmarks, out-of-distribution dom
|
|
| 106 |
|
| 107 |
### 1. NLP & Scientific Reasoning Benchmarks (Unseen Test Split, $N=1{,}024$)
|
| 108 |
|
| 109 |
-
| Evaluation Metric | Baseline (Qwen 2.5 7B Base) | SpaceAI-
|
| 110 |
| :--- | :---: | :---: | :---: |
|
| 111 |
| **AstroQA Domain F1-Score** | 72.35% | **89.12%** | **+16.77%** |
|
| 112 |
| **AstroQA Exact Match (EM)** | 58.12% | **76.45%** | **+18.33%** |
|
|
@@ -145,7 +145,7 @@ Comparison across equivalent 7B–8B parameter open-weights models on domain sci
|
|
| 145 |
| **Llama-3-8B-Instruct** | 8.0B | 73.80% | 69.20% | 0.742 | 8,192 |
|
| 146 |
| **Mistral-7B-Instruct-v0.3** | 7.2B | 71.45% | 66.85% | 0.710 | 32,768 |
|
| 147 |
| **Qwen-2.5-7B-Base** | 7.6B | 72.35% | 68.10% | 0.765 | 32,768 |
|
| 148 |
-
| **SpaceAI-
|
| 149 |
|
| 150 |
---
|
| 151 |
|
|
@@ -169,7 +169,7 @@ graph TD
|
|
| 169 |
import torch
|
| 170 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 171 |
|
| 172 |
-
model_id = "Anoopsingh53/
|
| 173 |
|
| 174 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 175 |
model = AutoModelForCausalLM.from_pretrained(
|
|
@@ -181,7 +181,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 181 |
conversation = [
|
| 182 |
{
|
| 183 |
"role": "system",
|
| 184 |
-
"content": "You are SpaceAI-
|
| 185 |
},
|
| 186 |
{
|
| 187 |
"role": "user",
|
|
@@ -208,7 +208,7 @@ print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_toke
|
|
| 208 |
|
| 209 |
```bash
|
| 210 |
python -m vllm.entrypoints.openai.api_server \
|
| 211 |
-
--model Anoopsingh53/
|
| 212 |
--tensor-parallel-size 1 \
|
| 213 |
--dtype float16 \
|
| 214 |
--max-model-len 8192 \
|
|
@@ -239,10 +239,10 @@ python -m vllm.entrypoints.openai.api_server \
|
|
| 239 |
```bibtex
|
| 240 |
@misc{singh2026spaceai,
|
| 241 |
author = {Singh, Anoop},
|
| 242 |
-
title = {SpaceAI-
|
| 243 |
year = {2026},
|
| 244 |
publisher = {Hugging Face},
|
| 245 |
-
howpublished = {\url{https://huggingface.co/Anoopsingh53/
|
| 246 |
note = {National Space Day 2026 ISRO/IN-SPACe Contribution}
|
| 247 |
}
|
| 248 |
```
|
|
|
|
| 33 |
pipeline_tag: text-generation
|
| 34 |
library_name: transformers
|
| 35 |
model-index:
|
| 36 |
+
- name: ISRO-SpaceAI-7B-Instruct-Enterprise
|
| 37 |
results:
|
| 38 |
- task:
|
| 39 |
type: text-generation
|
|
|
|
| 58 |
|
| 59 |
<div align="center">
|
| 60 |
|
| 61 |
+
# 🛰️ ISRO-SpaceAI-7B-Instruct: ISRO & NASA Multi-Domain 7B Foundation Model
|
| 62 |
### **An Empirical Foundation Intelligence for Heliophysics, Marine Hydrosphere & Planetary Observation**
|
| 63 |
|
| 64 |
[](https://opensource.org/licenses/Apache-2.0)
|
|
|
|
| 76 |
|
| 77 |
## Executive Abstract
|
| 78 |
|
| 79 |
+
**ISRO-SpaceAI-7B-Instruct** is a 7.61-Billion parameter foundation language model purpose-built for scientific reasoning, telemetry analysis, and predictive physical modeling across **Solar Heliophysics (ISRO Aditya-L1), Marine Oceanography (CalCOFI / Oceansat-3), Microwave Earth Observation (Sentinel-1 SAR), and Exoplanetary Photometry (NASA Kepler)**.
|
| 80 |
|
| 81 |
Fine-tuned on curated astrophysical literature and multi-spectral sensor manifolds via **4-bit NormalFloat (NF4) QLoRA with full IEEE FP16 weight safe-merging**, SpaceAI delivers high factual grounding, sub-second latency, and zero-hallucination domain inference.
|
| 82 |
|
|
|
|
| 106 |
|
| 107 |
### 1. NLP & Scientific Reasoning Benchmarks (Unseen Test Split, $N=1{,}024$)
|
| 108 |
|
| 109 |
+
| Evaluation Metric | Baseline (Qwen 2.5 7B Base) | ISRO-SpaceAI-7B-Instruct (Fine-Tuned) | Delta Improvement |
|
| 110 |
| :--- | :---: | :---: | :---: |
|
| 111 |
| **AstroQA Domain F1-Score** | 72.35% | **89.12%** | **+16.77%** |
|
| 112 |
| **AstroQA Exact Match (EM)** | 58.12% | **76.45%** | **+18.33%** |
|
|
|
|
| 145 |
| **Llama-3-8B-Instruct** | 8.0B | 73.80% | 69.20% | 0.742 | 8,192 |
|
| 146 |
| **Mistral-7B-Instruct-v0.3** | 7.2B | 71.45% | 66.85% | 0.710 | 32,768 |
|
| 147 |
| **Qwen-2.5-7B-Base** | 7.6B | 72.35% | 68.10% | 0.765 | 32,768 |
|
| 148 |
+
| **ISRO-SpaceAI-7B-Instruct (Ours)** | **7.6B** | **89.12%** | **78.34%** | **0.941** | **32,768** |
|
| 149 |
|
| 150 |
---
|
| 151 |
|
|
|
|
| 169 |
import torch
|
| 170 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 171 |
|
| 172 |
+
model_id = "Anoopsingh53/ISRO-SpaceAI-7B-Instruct"
|
| 173 |
|
| 174 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 175 |
model = AutoModelForCausalLM.from_pretrained(
|
|
|
|
| 181 |
conversation = [
|
| 182 |
{
|
| 183 |
"role": "system",
|
| 184 |
+
"content": "You are ISRO-SpaceAI-7B-Instruct, an empirical scientific intelligence specialized in ISRO/NASA heliophysics, oceanography, and remote sensing."
|
| 185 |
},
|
| 186 |
{
|
| 187 |
"role": "user",
|
|
|
|
| 208 |
|
| 209 |
```bash
|
| 210 |
python -m vllm.entrypoints.openai.api_server \
|
| 211 |
+
--model Anoopsingh53/ISRO-SpaceAI-7B-Instruct \
|
| 212 |
--tensor-parallel-size 1 \
|
| 213 |
--dtype float16 \
|
| 214 |
--max-model-len 8192 \
|
|
|
|
| 239 |
```bibtex
|
| 240 |
@misc{singh2026spaceai,
|
| 241 |
author = {Singh, Anoop},
|
| 242 |
+
title = {ISRO-SpaceAI-7B-Instruct: An Empirical Multimodal Foundation Model for Heliophysics, Oceanography, and Planetary Observation},
|
| 243 |
year = {2026},
|
| 244 |
publisher = {Hugging Face},
|
| 245 |
+
howpublished = {\url{https://huggingface.co/Anoopsingh53/ISRO-SpaceAI-7B-Instruct}},
|
| 246 |
note = {National Space Day 2026 ISRO/IN-SPACe Contribution}
|
| 247 |
}
|
| 248 |
```
|