Instructions to use julioc-p/Gemma2BFullPrecisionDifferentChatTemplate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use julioc-p/Gemma2BFullPrecisionDifferentChatTemplate with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="julioc-p/Gemma2BFullPrecisionDifferentChatTemplate")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("julioc-p/Gemma2BFullPrecisionDifferentChatTemplate") model = AutoModelForCausalLM.from_pretrained("julioc-p/Gemma2BFullPrecisionDifferentChatTemplate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use julioc-p/Gemma2BFullPrecisionDifferentChatTemplate with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/julioc-p/Gemma2BFullPrecisionDifferentChatTemplate
- SGLang
How to use julioc-p/Gemma2BFullPrecisionDifferentChatTemplate 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 "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate" \ --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": "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate", "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 "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate" \ --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": "julioc-p/Gemma2BFullPrecisionDifferentChatTemplate", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use julioc-p/Gemma2BFullPrecisionDifferentChatTemplate with Docker Model Runner:
docker model run hf.co/julioc-p/Gemma2BFullPrecisionDifferentChatTemplate
Commit History
-
Rename tokenizer_config (1).json to tokenizer_config.json
Verified signature8740785 -
Rename tokenizer (1).model to tokenizer.model
Verified signature4d25a99 -
Rename tokenizer (1).json to tokenizer.json
Verified signatured9e7aa5 -
Rename special_tokens_map (1).json to special_tokens_map.json
Verified signatureb9c2bed -
Upload 4 files
Verified signature0045856 -
Upload GemmaForCausalLM
Verified signatureb5832b8 -
initial commit
Verified signature1fd926e