Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use saiphyohein/entityGemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saiphyohein/entityGemma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saiphyohein/entityGemma") 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("saiphyohein/entityGemma") model = AutoModelForCausalLM.from_pretrained("saiphyohein/entityGemma", 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
- vLLM
How to use saiphyohein/entityGemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saiphyohein/entityGemma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saiphyohein/entityGemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/saiphyohein/entityGemma
- SGLang
How to use saiphyohein/entityGemma 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 "saiphyohein/entityGemma" \ --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": "saiphyohein/entityGemma", "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 "saiphyohein/entityGemma" \ --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": "saiphyohein/entityGemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use saiphyohein/entityGemma with Docker Model Runner:
docker model run hf.co/saiphyohein/entityGemma
Ctrl+K
- Nov06_17-31-47_e681e28e25c2
- Nov11_21-40-15_3b48221a1d8d
- Nov14_13-37-43_7603359c03a9
- Nov14_14-29-24_7603359c03a9
- Nov14_17-00-33_784fda937be5
- Nov14_17-51-29_784fda937be5
- Nov14_17-55-52_784fda937be5
- Nov14_22-59-32_9577245e725a
- Nov16_14-36-50_0c368c4228f5
- Oct20_14-43-53_a54b8b05979b
- Oct20_16-55-18_a54b8b05979b
- Oct21_03-28-33_0e88eba39f5e
- Oct28_15-43-56_4dbc463beccb
- Oct29_09-03-36_8205f72d9ddf
- Oct29_12-13-23_d3c100e1e9ea