How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "africatic/atic"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "africatic/atic",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker
docker model run hf.co/africatic/atic
Quick Links

Gemma 4 E4B — AfriTemp LoRA

This repository contains a LoRA adapter fine-tuned from google/gemma-4-E4B-it on africatic/afritemp-bench.

Training setup

  • Method: LoRA supervised fine-tuning
  • Precision: BF16
  • GPU: NVIDIA A100-SXM4-40GB
  • Maximum sequence length: 1024
  • Epochs: 3
  • Per-device batch size: 1
  • Gradient accumulation: 16
  • Effective batch size: 16
  • Learning rate: 0.0002
  • LoRA rank: 16
  • LoRA alpha: 32

Intended use

The adapter is intended for research on temporal reasoning and African economic, social and development data. It should be evaluated carefully before use in consequential decision-making.

Loading

import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base_model_id = "google/gemma-4-E4B-it"
adapter_id = "YOUR_HF_USERNAME/gemma-4-e4b-afritemp"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
base_model = AutoModelForCausalLM.from_pretrained(
    base_model_id,
    dtype=torch.bfloat16,
    device_map="auto",
)
model = PeftModel.from_pretrained(base_model, adapter_id)

Framework versions

  • PEFT 0.19.1
Downloads last month
41
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for africatic/atic

Adapter
(313)
this model

Dataset used to train africatic/atic