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 |
+
library_name: transformers
|
| 8 |
+
tags:
|
| 9 |
+
- oil-gas
|
| 10 |
+
- drilling-engineering
|
| 11 |
+
- retrieval-augmented-generation
|
| 12 |
+
- finetuned
|
| 13 |
+
- energy-ai
|
| 14 |
+
- tiny-r1-32b
|
| 15 |
+
- lora
|
| 16 |
+
model-index:
|
| 17 |
+
- name: OGAI-R1
|
| 18 |
+
results:
|
| 19 |
+
- task:
|
| 20 |
+
type: text-generation
|
| 21 |
+
name: Oil & Gas Engineering AI
|
| 22 |
+
dataset:
|
| 23 |
+
name: GainEnergy GPT-4o Oil & Gas Training Set
|
| 24 |
+
type: custom
|
| 25 |
+
metrics:
|
| 26 |
+
- name: Engineering Calculations Accuracy
|
| 27 |
+
type: accuracy
|
| 28 |
+
value: 94.3
|
| 29 |
+
- name: Technical Document Retrieval Precision
|
| 30 |
+
type: precision
|
| 31 |
+
value: 90.5
|
| 32 |
+
- name: Context Retention
|
| 33 |
+
type: contextual-coherence
|
| 34 |
+
value: High
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
# OGAI-R1: Oil & Gas AI Model for Engineering & Technical Knowledge
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
[](LICENSE)
|
| 41 |
+
|
| 42 |
+
**OGAI-R1** is a **fine-tuned version of TinyR1-32B**, designed specifically for **oil and gas engineering applications**. It is optimized for **engineering calculations, wellbore stability analysis, reservoir management, and document-based retrieval-augmented generation (RAG)**.
|
| 43 |
+
|
| 44 |
+
The model has been trained using **GainEnergy's GPT-4o Oil & Gas Training Set**, incorporating expert knowledge, technical formulas, and structured query-response interactions.
|
| 45 |
+
|
| 46 |
+
## π **Why Use OGAI-R1?**
|
| 47 |
+
- **π Fine-tuned for oil & gas engineering tasks** (drilling, production, reservoir, and refining).
|
| 48 |
+
- **π‘ Optimized for RAG** β Enhanced document understanding and retrieval.
|
| 49 |
+
- **π Long-Context Retention** β Handles **up to 32K tokens** for complex engineering workflows.
|
| 50 |
+
- **β‘ LoRA Fine-Tuning on TinyR1-32B** β Enables efficient inference and quick knowledge retrieval.
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
|
| 54 |
+
## π **How to Use OGAI-R1**
|
| 55 |
+
|
| 56 |
+
### **1οΈβ£ Install Required Dependencies**
|
| 57 |
+
```bash
|
| 58 |
+
pip install torch transformers accelerate bitsandbytes
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### **2οΈβ£ Load the Model**
|
| 62 |
+
```python
|
| 63 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 64 |
+
|
| 65 |
+
model_id = "GainEnergy/OGAI-R1"
|
| 66 |
+
|
| 67 |
+
# Load tokenizer
|
| 68 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 69 |
+
|
| 70 |
+
# Load model
|
| 71 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
| 72 |
+
|
| 73 |
+
# Run inference
|
| 74 |
+
prompt = "Explain the principles of reservoir simulation in petroleum engineering."
|
| 75 |
+
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
|
| 76 |
+
outputs = model.generate(**inputs, max_new_tokens=512)
|
| 77 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## π¦ **Model Variants**
|
| 83 |
+
| **Model Name** | **Base Model** | **Precision** | **Context Window** | **Use Case** |
|
| 84 |
+
|--------------|--------------|--------------|--------------|--------------|
|
| 85 |
+
| **OGAI-R1** | TinyR1-32B | FP16 | 32K tokens | **Engineering Calculations & RAG** |
|
| 86 |
+
| **OGAI-8x7B** | Mixtral-8x7B | 4-bit | 32K tokens | Oil & Gas AI Assistant |
|
| 87 |
+
| **OGAI-Reasoner** | DeepSeek-R1 | FP16 | 128K tokens | Logical Reasoning & AI Simulation |
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## π **Key Capabilities**
|
| 92 |
+
β
**Engineering Calculations** β Computes reservoir volumes, wellbore stability, mud weight, casing depth, and more.
|
| 93 |
+
β
**Technical Document Understanding** β Trained on oil and gas **technical literature, drilling reports, and engineering manuals**.
|
| 94 |
+
β
**Retrieval-Augmented Generation (RAG)** β Enhances AI-driven document retrieval for faster decision-making.
|
| 95 |
+
β
**High-Context Retention (32K tokens)** β Supports **long technical reports, operational workflows, and AI-driven engineering analysis**.
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
## π **Use Cases**
|
| 100 |
+
- **Wellbore Stability & Drilling Optimization**
|
| 101 |
+
- **Hydraulics & Fluid Flow Simulations**
|
| 102 |
+
- **Reservoir Engineering & Petrophysics Analysis**
|
| 103 |
+
- **AI-Powered Document Retrieval & RAG Workflows**
|
| 104 |
+
- **Technical Compliance & Regulatory Document Processing**
|
| 105 |
+
|
| 106 |
+
---
|
| 107 |
+
|
| 108 |
+
## π‘ **Deployment Options**
|
| 109 |
+
| **Platform** | **Compatible?** | **Recommended Setup** |
|
| 110 |
+
|-------------|----------------|-----------------------|
|
| 111 |
+
| **Hugging Face Inference API** | β
Yes | Deploy via `hf.co/GainEnergy/OGAI-R1` |
|
| 112 |
+
| **RunPod.io (Serverless GPU)** | β
Yes | `A100-40GB` or `RTX 4090` |
|
| 113 |
+
| **AWS EC2 (G5 Instances)** | β
Yes | `ml.g5.2xlarge` (8 vCPUs, 32GB RAM) |
|
| 114 |
+
| **Local GPU (Consumer Hardware)** | β
Yes | Requires **β₯16GB VRAM (RTX 3090, 4090)** |
|
| 115 |
+
|
| 116 |
+
---
|
| 117 |
+
|
| 118 |
+
## β οΈ **Limitations**
|
| 119 |
+
π§ **Optimized for Oil & Gas Engineering** β Not designed for general-purpose AI tasks.
|
| 120 |
+
π§ **Requires domain-specific expertise** β Outputs should be validated by industry experts.
|
| 121 |
+
π§ **Computational requirements** β Running the full TinyR1-32B model requires high-end GPUs.
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## π **Resources**
|
| 126 |
+
- **[GainEnergy AI Platform](https://gain.energy)** β Explore AI-powered drilling automation.
|
| 127 |
+
- **[Hugging Face Model Hub](https://huggingface.co/GainEnergy/OGAI-R1)** β Download & deploy the model.
|
| 128 |
+
|
| 129 |
+
---
|
| 130 |
+
|
| 131 |
+
## π **Citing OGAI-R1**
|
| 132 |
+
```bibtex
|
| 133 |
+
@article{ogai-r1-2025,
|
| 134 |
+
title={OGAI-R1: An AI Model for Oil & Gas Engineering Optimization},
|
| 135 |
+
author={GainEnergy AI Team},
|
| 136 |
+
year={2025},
|
| 137 |
+
publisher={Hugging Face Models}
|
| 138 |
+
}
|
| 139 |
+
```
|