Text Generation
Transformers
Safetensors
English
gemma
text-generation-inference
unsloth
trl
sft
conversational
4-bit precision
bitsandbytes
Run this model with HF Jobs
Run OnlyCheeini/gemma-az on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/OnlyCheeini/gemma-az. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/OnlyCheeini/gemma-az on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/OnlyCheeini/gemma-az. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use OnlyCheeini/gemma-az with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OnlyCheeini/gemma-az with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OnlyCheeini/gemma-az") 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("OnlyCheeini/gemma-az") model = AutoModelForCausalLM.from_pretrained("OnlyCheeini/gemma-az", 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 OnlyCheeini/gemma-az with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OnlyCheeini/gemma-az" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OnlyCheeini/gemma-az", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OnlyCheeini/gemma-az
- SGLang
How to use OnlyCheeini/gemma-az 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 "OnlyCheeini/gemma-az" \ --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": "OnlyCheeini/gemma-az", "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 "OnlyCheeini/gemma-az" \ --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": "OnlyCheeini/gemma-az", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use OnlyCheeini/gemma-az with Docker Model Runner:
docker model run hf.co/OnlyCheeini/gemma-az
Trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
Files changed (4)
8 unmodified lines910111213141516178 unmodified lines- gemma- trl- sftbase_model: unsloth/gemma-7b-bnb-4bitdatasets:- omar07ibrahim/alpaca-cleaned_AZERBAIJANIpipeline_tag: text-generation---8 unmodified lines910111213141516178 unmodified lines- gemma- trl- sftdatasets:- omar07ibrahim/alpaca-cleaned_AZERBAIJANIbase_model: unsloth/gemma-7b-bnb-4bitpipeline_tag: text-generation---
123version https://git-lfs.github.com/spec/v1oid sha256:b4683bd68fba53e5eda8e8d18c35528d0d9de3b533fba692dcbd40d10d6610efsize 4999604054123version https://git-lfs.github.com/spec/v1oid sha256:df3bc12b8d44336ca154c31b06e4a8e9341108086ff8b1a8c9fb11741477d028size 4999604053
123version https://git-lfs.github.com/spec/v1oid sha256:273266bc7d85564c059d5b0348f6f669c6320b7a2f10e57679e230c4e51b9d6dsize 572543802123version https://git-lfs.github.com/spec/v1oid sha256:e5c4000049c3ca0f118512532eba9f2c21d6e60ae3f3defd3e882ae57367e9casize 572543800
123456{"metadata": {"total_size": 5572000984},"weight_map": {"model.embed_tokens.weight": "model-00001-of-00002.safetensors",123456{"metadata": {"total_size": 5572000981},"weight_map": {"model.embed_tokens.weight": "model-00001-of-00002.safetensors",
README.md+1-1
model-00001-of-00002.safetensors+2-2
model-00002-of-00002.safetensors+2-2
model.safetensors.index.json+1-1