Instructions to use Capitaller/gemma_4E2B_finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Capitaller/gemma_4E2B_finetune with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Capitaller/gemma_4E2B_finetune")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Capitaller/gemma_4E2B_finetune") model = AutoModelForImageTextToText.from_pretrained("Capitaller/gemma_4E2B_finetune") - llama-cpp-python
How to use Capitaller/gemma_4E2B_finetune with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Capitaller/gemma_4E2B_finetune", filename="gemma-4-e2b.F16-mmproj.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Capitaller/gemma_4E2B_finetune with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Capitaller/gemma_4E2B_finetune:F16 # Run inference directly in the terminal: llama-cli -hf Capitaller/gemma_4E2B_finetune:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Capitaller/gemma_4E2B_finetune:F16 # Run inference directly in the terminal: llama-cli -hf Capitaller/gemma_4E2B_finetune:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Capitaller/gemma_4E2B_finetune:F16 # Run inference directly in the terminal: ./llama-cli -hf Capitaller/gemma_4E2B_finetune:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Capitaller/gemma_4E2B_finetune:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Capitaller/gemma_4E2B_finetune:F16
Use Docker
docker model run hf.co/Capitaller/gemma_4E2B_finetune:F16
- LM Studio
- Jan
- vLLM
How to use Capitaller/gemma_4E2B_finetune with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Capitaller/gemma_4E2B_finetune" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Capitaller/gemma_4E2B_finetune", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Capitaller/gemma_4E2B_finetune:F16
- SGLang
How to use Capitaller/gemma_4E2B_finetune 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 "Capitaller/gemma_4E2B_finetune" \ --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": "Capitaller/gemma_4E2B_finetune", "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 "Capitaller/gemma_4E2B_finetune" \ --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": "Capitaller/gemma_4E2B_finetune", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Capitaller/gemma_4E2B_finetune with Ollama:
ollama run hf.co/Capitaller/gemma_4E2B_finetune:F16
- Unsloth Studio new
How to use Capitaller/gemma_4E2B_finetune with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Capitaller/gemma_4E2B_finetune to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Capitaller/gemma_4E2B_finetune to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Capitaller/gemma_4E2B_finetune to start chatting
- Docker Model Runner
How to use Capitaller/gemma_4E2B_finetune with Docker Model Runner:
docker model run hf.co/Capitaller/gemma_4E2B_finetune:F16
- Lemonade
How to use Capitaller/gemma_4E2B_finetune with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Capitaller/gemma_4E2B_finetune:F16
Run and chat with the model
lemonade run user.gemma_4E2B_finetune-F16
List all available models
lemonade list
Gemma-4-E2B Agentic AI on AWS (Continued Pretraining)
This model is a fine-tuned version of Google's Gemma-4-E2B, explicitly adapted using Continued Pretraining (CPT). It has been trained to deeply understand the architectures, protocols, frameworks, and deployment strategies of Agentic AI systems on Amazon Web Services (AWS).
The model was adapted using Unsloth, leveraging Rank-Stabilized LoRA (rsLoRA) on both the attention/MLP layers and the core vocabulary embeddings to maximize domain adaptation.
Model Details
- Base Model:
google/gemma-4-e2b(viaunsloth/gemma-4-E2B) - Training Type: Continued Pretraining (CPT) / Next-Token Prediction
- Domain focus: AWS Architecture, Agentic AI, Frameworks, and Protocols (MCP, etc.)
- Language: English
- Library: Unsloth / Hugging Face Transformers
Dataset
The model was trained on specialized architectural literature, specifically sourced from the AWS Prescriptive Guidance: Agentic AI frameworks, platforms, protocols, and tools on AWS (92 pages). The dataset consists of high-quality architectural documentation, best practices, and protocol standards.
Training Configuration
Because this model underwent Continued Pretraining (to inject raw domain knowledge) rather than just behavioral Instruction Tuning, the embeddings and language modeling head were actively fine-tuned.
- Method: PEFT / LoRA (Rank-Stabilized)
- LoRA Rank (r): 64
- LoRA Alpha: 16
- Target Modules: Vision layers disabled. Attention, MLP,
embed_tokens, andlm_headmodules deeply fine-tuned. - Precision: 4-bit quantization (QLoRA) during training
- Optimizer: Paged AdamW 8-bit
How to Use
Since this is a Base/CPT model rather than a strict Chat/Instruct model, it excels at text continuation, documentation generation, and architectural drafting.
You can load it using Transformers or Unsloth:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Capitaller/gemma_4E2B_finetune"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "When designing Agentic AI architectures on AWS using the Model Context Protocol (MCP), it is highly recommended to"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Prompting Tips
Because the model acts as a highly knowledgeable autocomplete engine for AWS Agentic AI, frame your prompts as the beginning of a technical document or architectural guide rather than a question.
- Avoid:
"How do I use MCP on AWS?" - Do this instead:
"### Guide to implementing the Model Context Protocol (MCP) on AWS\n\nThe most effective way to deploy MCP on AWS involves"
- Downloads last month
- 63
8-bit