Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,28 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
---
|
5 |
+
tags:
|
6 |
+
- text-generation
|
7 |
+
---
|
8 |
+
|
9 |
+
# Model Name
|
10 |
+
|
11 |
+
This is a fine-tuned model for text generation.
|
12 |
+
|
13 |
+
## Usage
|
14 |
+
|
15 |
+
```python
|
16 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
17 |
+
|
18 |
+
model_name = "MohamedIFQ/sysmlAI"
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
20 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
21 |
+
|
22 |
+
nlp = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
23 |
+
|
24 |
+
prompt = "Your prompt here"
|
25 |
+
result = nlp(prompt)
|
26 |
+
print(result)
|
27 |
+
|
28 |
+
|