Text Generation
Transformers
Safetensors
Undetermined
indus-script
ancient-scripts
archaeology
nlp
sequence-modeling
grammar-analysis
undeciphered-script
Instructions to use hellosindh/indus-script-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hellosindh/indus-script-models with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hellosindh/indus-script-models")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("hellosindh/indus-script-models", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hellosindh/indus-script-models with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hellosindh/indus-script-models" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hellosindh/indus-script-models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/hellosindh/indus-script-models
- SGLang
How to use hellosindh/indus-script-models 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 "hellosindh/indus-script-models" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hellosindh/indus-script-models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "hellosindh/indus-script-models" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hellosindh/indus-script-models", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use hellosindh/indus-script-models with Docker Model Runner:
docker model run hf.co/hellosindh/indus-script-models
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,8 +36,6 @@ pip install torch transformers
|
|
| 36 |
python inference.py --task demo
|
| 37 |
```
|
| 38 |
|
| 39 |
-
That is it. No downloads, no configuration. Models are already in the repo.
|
| 40 |
-
|
| 41 |
---
|
| 42 |
|
| 43 |
## What you can do
|
|
@@ -145,9 +143,9 @@ def generate(self, temperature=0.85, top_k=40, max_len=6):
|
|
| 145 |
Sequences use sign IDs like T638, T177. To see actual glyphs:
|
| 146 |
|
| 147 |
1. Search for **indus-brahmi-font** and download it
|
| 148 |
-
2.
|
| 149 |
-
3.
|
| 150 |
-
4.
|
| 151 |
|
| 152 |
Without the font installed, glyphs show as boxes or question marks.
|
| 153 |
The sign IDs (T638, T177 etc.) always work regardless of font.
|
|
|
|
| 36 |
python inference.py --task demo
|
| 37 |
```
|
| 38 |
|
|
|
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
## What you can do
|
|
|
|
| 143 |
Sequences use sign IDs like T638, T177. To see actual glyphs:
|
| 144 |
|
| 145 |
1. Search for **indus-brahmi-font** and download it
|
| 146 |
+
2. The `glyphs` field in output shows the rendered glyph characters
|
| 147 |
+
3. Open `data/id_to_glyph.json` to see the full sign to character mapping
|
| 148 |
+
4. If want to see mapping with T, open `data/indus_tokenizer/indus_id_map.json`
|
| 149 |
|
| 150 |
Without the font installed, glyphs show as boxes or question marks.
|
| 151 |
The sign IDs (T638, T177 etc.) always work regardless of font.
|