Text Generation
Transformers
Safetensors
GGUF
Bengali
English
llama
bengali
tagore
poetry
small-model
conversational
text-generation-inference
Instructions to use dbishwarup/TagoreGPT-29M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dbishwarup/TagoreGPT-29M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dbishwarup/TagoreGPT-29M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dbishwarup/TagoreGPT-29M") model = AutoModelForCausalLM.from_pretrained("dbishwarup/TagoreGPT-29M", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use dbishwarup/TagoreGPT-29M with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf dbishwarup/TagoreGPT-29M:F16 # Run inference directly in the terminal: llama cli -hf dbishwarup/TagoreGPT-29M:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dbishwarup/TagoreGPT-29M:F16 # Run inference directly in the terminal: llama cli -hf dbishwarup/TagoreGPT-29M:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf dbishwarup/TagoreGPT-29M:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf dbishwarup/TagoreGPT-29M:F16
Use Docker
docker model run hf.co/dbishwarup/TagoreGPT-29M:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use dbishwarup/TagoreGPT-29M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dbishwarup/TagoreGPT-29M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dbishwarup/TagoreGPT-29M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dbishwarup/TagoreGPT-29M:F16
- SGLang
How to use dbishwarup/TagoreGPT-29M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "dbishwarup/TagoreGPT-29M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dbishwarup/TagoreGPT-29M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "dbishwarup/TagoreGPT-29M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dbishwarup/TagoreGPT-29M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use dbishwarup/TagoreGPT-29M with Ollama:
ollama run hf.co/dbishwarup/TagoreGPT-29M:F16
- Unsloth Desktop
- Docker Model Runner
How to use dbishwarup/TagoreGPT-29M with Docker Model Runner:
docker model run hf.co/dbishwarup/TagoreGPT-29M:F16
- Lemonade
How to use dbishwarup/TagoreGPT-29M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dbishwarup/TagoreGPT-29M:F16
Run and chat with the model
lemonade run user.TagoreGPT-29M-F16
List all available models
lemonade list
- Atomic Chat
v8: download copies (safetensors, GGUF)
Browse files- README.md +1 -1
- model.safetensors +1 -1
- tagoregpt-29m-f16.gguf +1 -1
README.md
CHANGED
|
@@ -58,7 +58,7 @@ print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
|
|
| 58 |
other Bengali writers (Bengali Wikisource) + 19th-century English (Project Gutenberg) + Tagore.
|
| 59 |
- Phase 2: Tagore only (Bengali scans from the Digital Library of India / Internet Archive, English from Project Gutenberg).
|
| 60 |
- Every training piece starts with hidden labels (language, type, author); its title and opening paragraph stay in view, which keeps long pieces on their hero and topic.
|
| 61 |
-
- Weights in this release: tagore step -1. Unseen-text loss per word piece: tagore_en: 3.
|
| 62 |
|
| 63 |
## Data and licence
|
| 64 |
|
|
|
|
| 58 |
other Bengali writers (Bengali Wikisource) + 19th-century English (Project Gutenberg) + Tagore.
|
| 59 |
- Phase 2: Tagore only (Bengali scans from the Digital Library of India / Internet Archive, English from Project Gutenberg).
|
| 60 |
- Every training piece starts with hidden labels (language, type, author); its title and opening paragraph stay in view, which keeps long pieces on their hero and topic.
|
| 61 |
+
- Weights in this release: tagore step -1. Unseen-text loss per word piece: tagore_en: 3.229, tagore_bn: 3.677.
|
| 62 |
|
| 63 |
## Data and licence
|
| 64 |
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 169526304
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38fe679d081ed0ea78d49c3bc990e23dfa650760e326473f7b393222242d0b79
|
| 3 |
size 169526304
|
tagoregpt-29m-f16.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 85127584
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:33f3d410f102534624a316fc97fb5966941caba1295e6d7955c756e78c141c78
|
| 3 |
size 85127584
|