Instructions to use dost-asti/gpt2-tl-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dost-asti/gpt2-tl-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dost-asti/gpt2-tl-cased")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dost-asti/gpt2-tl-cased") model = AutoModelForCausalLM.from_pretrained("dost-asti/gpt2-tl-cased") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dost-asti/gpt2-tl-cased with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dost-asti/gpt2-tl-cased" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dost-asti/gpt2-tl-cased", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dost-asti/gpt2-tl-cased
- SGLang
How to use dost-asti/gpt2-tl-cased 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 "dost-asti/gpt2-tl-cased" \ --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": "dost-asti/gpt2-tl-cased", "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 "dost-asti/gpt2-tl-cased" \ --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": "dost-asti/gpt2-tl-cased", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dost-asti/gpt2-tl-cased with Docker Model Runner:
docker model run hf.co/dost-asti/gpt2-tl-cased
Model Description
As part of the ITANONG project's 10 billion-token Tagalog dataset, we have introduced our initial pre-trained language models for Philippine languages. Our model suite encompasses various BERT-based, GPT-based, and Sentence Transformers tailored for Tagalog,Taglish and Cebuano.
Training Details
This model was trained using an Nvidia V100-32GB GPU on DOST-ASTI Computing and Archiving Research Environment (COARE) - https://asti.dost.gov.ph/projects/coare/
Training Data
The training dataset was compiled from both formal and informal sources, consisting of 5,159,917 instances from formal channels and 3,057,180 from informal sources. More information on pre-processing and training parameters on our paper
Citation
Paper : iTANONG-DS : A Collection of Benchmark Datasets for Downstream Natural Language Processing Tasks on Select Philippine Language
Bibtex:
@inproceedings{visperas-etal-2023-itanong,
title = "i{TANONG}-{DS} : A Collection of Benchmark Datasets for Downstream Natural Language Processing Tasks on Select {P}hilippine Languages",
author = "Visperas, Moses L. and
Borjal, Christalline Joie and
Adoptante, Aunhel John M and
Abacial, Danielle Shine R. and
Decano, Ma. Miciella and
Peramo, Elmer C",
editor = "Abbas, Mourad and
Freihat, Abed Alhakim",
booktitle = "Proceedings of the 6th International Conference on Natural Language and Speech Processing (ICNLSP 2023)",
month = dec,
year = "2023",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.icnlsp-1.34",
pages = "316--323",
}
- Downloads last month
- 5