Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use datasysdev/MyGemmaNPC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use datasysdev/MyGemmaNPC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="datasysdev/MyGemmaNPC") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("datasysdev/MyGemmaNPC") model = AutoModelForCausalLM.from_pretrained("datasysdev/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 datasysdev/MyGemmaNPC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "datasysdev/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": "datasysdev/MyGemmaNPC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/datasysdev/MyGemmaNPC
- SGLang
How to use datasysdev/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 "datasysdev/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": "datasysdev/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 "datasysdev/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": "datasysdev/MyGemmaNPC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use datasysdev/MyGemmaNPC with Docker Model Runner:
docker model run hf.co/datasysdev/MyGemmaNPC
Training in progress, epoch 5
Browse files- README.md +3 -3
- config.json +2 -2
- model.safetensors +1 -1
- runs/Sep13_18-14-38_4a0065bcf0ac/events.out.tfevents.1757787357.4a0065bcf0ac.324.0 +3 -0
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -34,11 +34,11 @@ This model was trained with SFT.
|
|
| 34 |
|
| 35 |
### Framework versions
|
| 36 |
|
| 37 |
-
- TRL: 0.
|
| 38 |
-
- Transformers: 4.
|
| 39 |
- Pytorch: 2.8.0+cu126
|
| 40 |
- Datasets: 4.0.0
|
| 41 |
-
- Tokenizers: 0.
|
| 42 |
|
| 43 |
## Citations
|
| 44 |
|
|
|
|
| 34 |
|
| 35 |
### Framework versions
|
| 36 |
|
| 37 |
+
- TRL: 0.23.0
|
| 38 |
+
- Transformers: 4.56.1
|
| 39 |
- Pytorch: 2.8.0+cu126
|
| 40 |
- Datasets: 4.0.0
|
| 41 |
+
- Tokenizers: 0.22.0
|
| 42 |
|
| 43 |
## Citations
|
| 44 |
|
config.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
|
|
|
| 10 |
"eos_token_id": 1,
|
| 11 |
"final_logit_softcapping": null,
|
| 12 |
"head_dim": 256,
|
|
@@ -46,8 +47,7 @@
|
|
| 46 |
"rope_scaling": null,
|
| 47 |
"rope_theta": 1000000.0,
|
| 48 |
"sliding_window": 512,
|
| 49 |
-
"
|
| 50 |
-
"transformers_version": "4.55.2",
|
| 51 |
"use_bidirectional_attention": false,
|
| 52 |
"use_cache": true,
|
| 53 |
"vocab_size": 262144
|
|
|
|
| 7 |
"attention_dropout": 0.0,
|
| 8 |
"attn_logit_softcapping": null,
|
| 9 |
"bos_token_id": 2,
|
| 10 |
+
"dtype": "bfloat16",
|
| 11 |
"eos_token_id": 1,
|
| 12 |
"final_logit_softcapping": null,
|
| 13 |
"head_dim": 256,
|
|
|
|
| 47 |
"rope_scaling": null,
|
| 48 |
"rope_theta": 1000000.0,
|
| 49 |
"sliding_window": 512,
|
| 50 |
+
"transformers_version": "4.56.1",
|
|
|
|
| 51 |
"use_bidirectional_attention": false,
|
| 52 |
"use_cache": true,
|
| 53 |
"vocab_size": 262144
|
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:e4bb9346b6ba86a992c9184371e5cf7f8892b7aac0575b4b5a64ec163ab2b512
|
| 3 |
size 536223056
|
runs/Sep13_18-14-38_4a0065bcf0ac/events.out.tfevents.1757787357.4a0065bcf0ac.324.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:771c17c52b076356d1d4fb8c29a282dfe5d6795660b12d0dfb01e517bca9a513
|
| 3 |
+
size 55640
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c86b6c8e023edb2bc3179cc2dffd0453684f6b1f1bec783de609f6b0100a5e6
|
| 3 |
+
size 6289
|