|
Download README.md from AliMuhammad73/testing-model: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/AliMuhammad73/testing-model/resolve/3ffa746aef55e0fcdf2e992aeaa0ec6d1c95f2fc/README.md
- Command line
-
hf download hf://AliMuhammad73/testing-model@3ffa746aef55e0fcdf2e992aeaa0ec6d1c95f2fc/README.md
-
curl -L -o README.md https://huggingface.co/AliMuhammad73/testing-model/resolve/3ffa746aef55e0fcdf2e992aeaa0ec6d1c95f2fc/README.md
796 Bytes
| # Custom Urdu LLM | |
| This is a custom transformer-based Large Language Model for Urdu. | |
| ## Model Details | |
| - **Architecture:** Transformer (GPT-based) | |
| - **Framework:** PyTorch | |
| - **Tokenizer:** SentencePiece | |
| - **Hyperparameters:** | |
| - Vocabulary Size: 20,000 | |
| - Embedding Size: 768 | |
| - Attention Heads: 12 | |
| - Layers: 12 | |
| - Dropout: 0.2 | |
| ## Usage | |
| ```python | |
| from transformers import AutoModel, AutoTokenizer | |
| model = AutoModel.from_pretrained("AliMuhammad73/testing-model") | |
| tokenizer = AutoTokenizer.from_pretrained("AliMuhammad73/testing-model") | |
| prompt = <prompt in urdu> | |
| inputs = tokenizer(prompt, return_tensors="pt") | |
| output = model.generate(inputs.input_ids, max_new_tokens=tokens_to_generate) | |
| print(tokenizer.decode(output[0])) | |
| ``` | |
| --- | |
| license: apache-2.0 | |
| --- | |