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
Commit History
-
Training in progress, epoch 9
Verified signaturec55bbab
-
Training in progress, epoch 8
Verified signaturee679eef
-
Model save
Verified signature15b0c1e -
Training in progress, epoch 8
Verified signaturea4c0e76 -
Model save
Verified signaturefaa62b9 -
Training in progress, epoch 5
Verified signature4d12c4b -
Model save
Verified signature8aea0db -
Training in progress, epoch 5
Verified signature6770f66
-
Training in progress, epoch 10
Verified signature58c8ecb
-
Training in progress, epoch 10
Verified signature2f6c6a7
-
Training in progress, epoch 5
Verified signatureb864ac2 -
Training in progress, epoch 10
Verified signature46df732
-
Training in progress, epoch 10
Verified signature159a6c5
-
Training in progress, epoch 10
Verified signature74658d5
-
Training in progress, epoch 10
Verified signature2cd676b -
Training in progress, epoch 5
Verified signature79e6bc8 -
initial commit
Verified signature048bb4f