Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
metrics:
|
| 4 |
+
- accuracy
|
| 5 |
+
base_model:
|
| 6 |
+
- openai-community/gpt2
|
| 7 |
+
- LLMasterLL/AbNovobench
|
| 8 |
+
library_name: transformers
|
| 9 |
+
tags:
|
| 10 |
+
- text-generation-inference
|
| 11 |
+
- chatbot
|
| 12 |
+
- causal-lm
|
| 13 |
+
- educational
|
| 14 |
+
- AI tutor
|
| 15 |
+
---
|
| 16 |
+
# AI Tutor Model v2
|
| 17 |
+
|
| 18 |
+
**Model:** `ai-tutor-model-v2`
|
| 19 |
+
**Author:** mah567
|
| 20 |
+
**License:** MIT / Apache 2.0
|
| 21 |
+
**Tags:** chatbot, question-answering, educational, AI tutor
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## Model Description
|
| 26 |
+
|
| 27 |
+
`ai-tutor-model-v2` is a fine-tuned causal language model designed to answer educational questions. It is trained on a custom dataset of Q&A pairs to assist students and learners with explanations and solutions.
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## Intended Use
|
| 32 |
+
|
| 33 |
+
- Answering educational questions.
|
| 34 |
+
- Providing explanations for simple queries.
|
| 35 |
+
- Assisting in tutoring and learning scenarios.
|
| 36 |
+
|
| 37 |
+
**Not intended for:**
|
| 38 |
+
- Medical, legal, or financial advice.
|
| 39 |
+
- Sensitive personal data processing.
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## How to Use
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
| 47 |
+
|
| 48 |
+
# Load the model
|
| 49 |
+
tokenizer = AutoTokenizer.from_pretrained("mah567/ai-tutor-model-v2")
|
| 50 |
+
model = AutoModelForCausalLM.from_pretrained("mah567/ai-tutor-model-v2")
|
| 51 |
+
|
| 52 |
+
# Create a text-generation pipeline
|
| 53 |
+
tutor = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
| 54 |
+
|
| 55 |
+
# Ask a question
|
| 56 |
+
response = tutor("What is the capital of France?", max_length=50)
|
| 57 |
+
print(response[0]['generated_text'])
|