How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="webkul/unopim-devdocs")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("webkul/unopim-devdocs")
model = AutoModelForCausalLM.from_pretrained("webkul/unopim-devdocs")
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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

🚀 Fine-tuned Gemma 3 Model (4B, 4-bit) by Webkul

This repository contains a fine-tuned version of Unsloth's gemma-3-4b-it model, optimized for lightweight 4-bit inference and instruction tuning using Hugging Face's TRL and Unsloth's speed-optimized framework.


What is UnoPim

UnoPim is an open-source Product Information Management (PIM) system built on the Laravel framework. It helps businesses organize, manage, and enrich their product information in one central repository.

🔧 Model Details


📚 Fine-tuning Dataset

This model was fine-tuned on unopim dev documentation available at https://devdocs.unopim.com/, focusing on structured software documentation and developer support content.


💡 Intended Use

  • Conversational AI assistants trained on UnoPIM developer docs
  • API documentation question answering
  • Developer tools and chatbot integrations
  • Contextual helpdesk or onboarding bots for UnoPIM products

🧪 How to Use

You can use this model with the Hugging Face transformers library:

from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "webkul/gemma-3-4b-it-unopim-docs"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

input_text = "How do I integrate the UnoPIM API for product syncing?"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=300)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

📄 License This model is licensed under the Apache License 2.0.


Downloads last month
5
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for webkul/unopim-devdocs

Finetuned
(1121)
this model