Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use gabrielemidulla/LPI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gabrielemidulla/LPI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gabrielemidulla/LPI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gabrielemidulla/LPI") model = AutoModelForCausalLM.from_pretrained("gabrielemidulla/LPI", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gabrielemidulla/LPI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gabrielemidulla/LPI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gabrielemidulla/LPI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gabrielemidulla/LPI
- SGLang
How to use gabrielemidulla/LPI 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 "gabrielemidulla/LPI" \ --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": "gabrielemidulla/LPI", "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 "gabrielemidulla/LPI" \ --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": "gabrielemidulla/LPI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use gabrielemidulla/LPI with Docker Model Runner:
docker model run hf.co/gabrielemidulla/LPI
Model save
Browse files- README.md +3 -2
- model.safetensors +1 -1
- runs/Aug21_21-39-58_gabri/events.out.tfevents.1755805199.gabri.36326.6 +3 -0
- runs/Aug21_21-43-22_gabri/events.out.tfevents.1755805409.gabri.39435.0 +3 -0
- runs/Aug21_21-43-22_gabri/events.out.tfevents.1755805438.gabri.39435.1 +3 -0
- runs/Aug21_21-44-30_gabri/events.out.tfevents.1755805474.gabri.39435.2 +3 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,16 +1,17 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
model_name: LPI
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
-
- sft
|
| 7 |
- trl
|
|
|
|
| 8 |
licence: license
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for LPI
|
| 12 |
|
| 13 |
-
This model is a fine-tuned version of [
|
| 14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 15 |
|
| 16 |
## Quick start
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: google/gemma-3-270m-it
|
| 3 |
library_name: transformers
|
| 4 |
model_name: LPI
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 7 |
- trl
|
| 8 |
+
- sft
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
| 12 |
# Model Card for LPI
|
| 13 |
|
| 14 |
+
This model is a fine-tuned version of [google/gemma-3-270m-it](https://huggingface.co/google/gemma-3-270m-it).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
|
| 17 |
## Quick start
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 536223056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93115fb5fe237da47c41d6271115605331e686c8b8541d2a6050038b89ec87c1
|
| 3 |
size 536223056
|
runs/Aug21_21-39-58_gabri/events.out.tfevents.1755805199.gabri.36326.6
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87e1941d77cf197e116a6fa47ca4217b1e864bebe6af4c110c9e950395839299
|
| 3 |
+
size 10557
|
runs/Aug21_21-43-22_gabri/events.out.tfevents.1755805409.gabri.39435.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0801feb009b03a8aca2e21c5458949963401297c8dd7e79848e20205b9ba8708
|
| 3 |
+
size 10557
|
runs/Aug21_21-43-22_gabri/events.out.tfevents.1755805438.gabri.39435.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:431c614d9ffd57f0e6d269ece81428c972864a7d9a9b48ca0f933f754ddd5a89
|
| 3 |
+
size 10557
|
runs/Aug21_21-44-30_gabri/events.out.tfevents.1755805474.gabri.39435.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b2523c0c4f99f83f663a485108664e4421d20e5fafe3a03709affa5dd175be9
|
| 3 |
+
size 107468
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6161
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d55d4fa697fffa432c406da3dc3ef272c128d055d1be75b1696d0754deb949a
|
| 3 |
size 6161
|