Update README.md
Browse files
README.md
CHANGED
@@ -15,13 +15,17 @@ pipeline_tag: question-answering
|
|
15 |
How to use it:
|
16 |
|
17 |
# Use a pipeline as a high-level helper
|
|
|
|
|
18 |
from transformers import pipeline
|
19 |
|
20 |
pipe = pipeline("question-answering", model="asif00/bangla-llama-4bit")
|
21 |
-
|
22 |
Copy
|
23 |
# Load model directly
|
|
|
24 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
25 |
|
26 |
tokenizer = AutoTokenizer.from_pretrained("asif00/bangla-llama-4bit")
|
27 |
model = AutoModelForCausalLM.from_pretrained("asif00/bangla-llama-4bit")
|
|
|
|
15 |
How to use it:
|
16 |
|
17 |
# Use a pipeline as a high-level helper
|
18 |
+
|
19 |
+
```python
|
20 |
from transformers import pipeline
|
21 |
|
22 |
pipe = pipeline("question-answering", model="asif00/bangla-llama-4bit")
|
23 |
+
```
|
24 |
Copy
|
25 |
# Load model directly
|
26 |
+
```python
|
27 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
28 |
|
29 |
tokenizer = AutoTokenizer.from_pretrained("asif00/bangla-llama-4bit")
|
30 |
model = AutoModelForCausalLM.from_pretrained("asif00/bangla-llama-4bit")
|
31 |
+
```
|