Instructions to use SubhrajitSain/anwgpt3-355m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SubhrajitSain/anwgpt3-355m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="SubhrajitSain/anwgpt3-355m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SubhrajitSain/anwgpt3-355m") model = AutoModelForCausalLM.from_pretrained("SubhrajitSain/anwgpt3-355m", 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
Simplify model card tags and clarify model type
Browse filesChanges:
1. **Removed unnecessary tags**
* `english`, `chat`, `chatbot`, `355m`, `gpt`, `gpt2`, `gpt2-medium` were removed.
* Reason: Some of these tags (e.g., `gpt2`) are automatically inferred from `config.json` because it contains `"model_type": "gpt2"`, and others are redundant or overly generic.
2. **Added/kept relevant tags**
* `conversational` -> indicates this model is a chatbot and supports conversational tasks.
* `anwgpt`, `anw`-> retained for brand/model recognition.
3. **Updated model type**
* Changed from `chatbot/conversational` to `text generator / question answering`
* Reason: better reflects the model鈥檚 capabilities, especially for tasks beyond just chat.
### Rationale
* Reduces clutter in the model card.
* Improves discoverability by focusing on functional and distinctive tags.
* Aligns model description with intended usage scenarios.
|
@@ -10,15 +10,9 @@ base_model:
|
|
| 10 |
pipeline_tag: question-answering
|
| 11 |
library_name: transformers
|
| 12 |
tags:
|
| 13 |
-
-
|
| 14 |
-
- chat
|
| 15 |
-
- chatbot
|
| 16 |
- anwgpt
|
| 17 |
- anw
|
| 18 |
-
- 355m
|
| 19 |
-
- gpt
|
| 20 |
-
- gpt2
|
| 21 |
-
- gpt2-medium
|
| 22 |
---
|
| 23 |
|
| 24 |
# ANWGPT3 (anwgpt3-355m)
|
|
@@ -28,7 +22,7 @@ Conversational version of ANWGPT2 (anwgpt2-355m).
|
|
| 28 |
- **Developed by:** Subhrajit Sain, aka, ANW
|
| 29 |
- **Funded by:** no one
|
| 30 |
- **Shared by:** no one
|
| 31 |
-
- **Model type:**
|
| 32 |
- **Language (NLP):** English
|
| 33 |
- **License:** MIT
|
| 34 |
- **Finetuned from model:** SubhrajitSain/anwgpt2-355m
|
|
|
|
| 10 |
pipeline_tag: question-answering
|
| 11 |
library_name: transformers
|
| 12 |
tags:
|
| 13 |
+
- conversational
|
|
|
|
|
|
|
| 14 |
- anwgpt
|
| 15 |
- anw
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
# ANWGPT3 (anwgpt3-355m)
|
|
|
|
| 22 |
- **Developed by:** Subhrajit Sain, aka, ANW
|
| 23 |
- **Funded by:** no one
|
| 24 |
- **Shared by:** no one
|
| 25 |
+
- **Model type:** text generator / question answering
|
| 26 |
- **Language (NLP):** English
|
| 27 |
- **License:** MIT
|
| 28 |
- **Finetuned from model:** SubhrajitSain/anwgpt2-355m
|