Text Generation
Transformers
Safetensors
Vietnamese
SAI
custom-code
vietnamese
causal-lm
custom_code
Instructions to use thongbuind/SAI_100M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use thongbuind/SAI_100M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="thongbuind/SAI_100M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("thongbuind/SAI_100M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use thongbuind/SAI_100M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thongbuind/SAI_100M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thongbuind/SAI_100M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/thongbuind/SAI_100M
- SGLang
How to use thongbuind/SAI_100M 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 "thongbuind/SAI_100M" \ --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": "thongbuind/SAI_100M", "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 "thongbuind/SAI_100M" \ --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": "thongbuind/SAI_100M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use thongbuind/SAI_100M with Docker Model Runner:
docker model run hf.co/thongbuind/SAI_100M
Commit History
4 days ago
-
Release dev3.0.2
Verified signatureNguồn Git 78f372d80b2cbde3ed9e8b587614f0ea61001c15; manifest SHA-256 8237142c4aafbf5f26933aa2a0a37c668483a22399ea7e04ba608fe866bb4decbcaeb75
6 days ago
-
Release dev3.0.1
Verified signatureNguồn Git 22a808bc924f14411615d6e5bb814fb06ed67305; manifest SHA-256 c8682225075cd0b42160751b651af2b9bd13e48557669df51ff91ba900c2498964da1bd
28 days ago
-
Restore model card metadata
Verified signature9b41bf3 -
Update README usage example
Verified signature74820ca -
Update generation API and usage guide
Verified signatureUse unified SFT-compatible generation with beam-5 stable stopping, conversation history support, and 10240-token context.8b0dbc5
-
Update README.md
Verified signaturee1ea1cd
-
Update README.md
Verified signatured3007b7 -
Update README.md
Verified signatureddd8e11 -
Update README.md
Verified signaturee7f36e2 -
Upload SAI_100M SFT1 model and inference code
Verified signature2e28a05
-
initial commit
Verified signature9d6087c