Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use Frackin/MyGemmaNPC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Frackin/MyGemmaNPC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Frackin/MyGemmaNPC") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Frackin/MyGemmaNPC") model = AutoModelForCausalLM.from_pretrained("Frackin/MyGemmaNPC") 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 Frackin/MyGemmaNPC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Frackin/MyGemmaNPC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Frackin/MyGemmaNPC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Frackin/MyGemmaNPC
- SGLang
How to use Frackin/MyGemmaNPC 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 "Frackin/MyGemmaNPC" \ --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": "Frackin/MyGemmaNPC", "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 "Frackin/MyGemmaNPC" \ --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": "Frackin/MyGemmaNPC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Frackin/MyGemmaNPC with Docker Model Runner:
docker model run hf.co/Frackin/MyGemmaNPC
Training in progress, epoch 1
Browse files
README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: google/gemma-3-270m-it
|
| 3 |
library_name: transformers
|
| 4 |
model_name: MyGemmaNPC
|
| 5 |
tags:
|
|
@@ -11,7 +10,7 @@ licence: license
|
|
| 11 |
|
| 12 |
# Model Card for MyGemmaNPC
|
| 13 |
|
| 14 |
-
This model is a fine-tuned version of [
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
|
| 17 |
## Quick start
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
model_name: MyGemmaNPC
|
| 4 |
tags:
|
|
|
|
| 10 |
|
| 11 |
# Model Card for MyGemmaNPC
|
| 12 |
|
| 13 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 15 |
|
| 16 |
## 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:f047f0aaeef6009856b787bad2445c0ceec0cb10d0d1717402e98ee77ebf9575
|
| 3 |
size 536223056
|
runs/Mar01_21-14-21_26383dcf3821/events.out.tfevents.1772399661.26383dcf3821.606.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f67157e3996a28cdaee7cc6a177c175256eb0eca2e48af1b948ed84beda05da
|
| 3 |
+
size 10327
|
tokenizer_config.json
CHANGED
|
@@ -5,8 +5,9 @@
|
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
"eoi_token": "<end_of_image>",
|
| 7 |
"eos_token": "<eos>",
|
|
|
|
| 8 |
"image_token": "<image_soft_token>",
|
| 9 |
-
"is_local":
|
| 10 |
"mask_token": "<mask>",
|
| 11 |
"model_max_length": 1000000000000000019884624838656,
|
| 12 |
"model_specific_special_tokens": {
|
|
|
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
"eoi_token": "<end_of_image>",
|
| 7 |
"eos_token": "<eos>",
|
| 8 |
+
"extra_special_tokens": [],
|
| 9 |
"image_token": "<image_soft_token>",
|
| 10 |
+
"is_local": true,
|
| 11 |
"mask_token": "<mask>",
|
| 12 |
"model_max_length": 1000000000000000019884624838656,
|
| 13 |
"model_specific_special_tokens": {
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5713
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10fd20c093dcac5d459de1dad92fb951a0d630dcfc52a7854542da8ca389d73d
|
| 3 |
size 5713
|