Text Generation
Transformers
Safetensors
Polish
gpt2
polish
base-model
from-scratch
amd-rocm
continued-pretraining
Eval Results (legacy)
text-generation-inference
Instructions to use SlayerLab/GoLLeM-110M-PL-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SlayerLab/GoLLeM-110M-PL-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SlayerLab/GoLLeM-110M-PL-v3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SlayerLab/GoLLeM-110M-PL-v3") model = AutoModelForCausalLM.from_pretrained("SlayerLab/GoLLeM-110M-PL-v3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SlayerLab/GoLLeM-110M-PL-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SlayerLab/GoLLeM-110M-PL-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SlayerLab/GoLLeM-110M-PL-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SlayerLab/GoLLeM-110M-PL-v3
- SGLang
How to use SlayerLab/GoLLeM-110M-PL-v3 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 "SlayerLab/GoLLeM-110M-PL-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SlayerLab/GoLLeM-110M-PL-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "SlayerLab/GoLLeM-110M-PL-v3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SlayerLab/GoLLeM-110M-PL-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SlayerLab/GoLLeM-110M-PL-v3 with Docker Model Runner:
docker model run hf.co/SlayerLab/GoLLeM-110M-PL-v3
card: podpiecie datasetu treningowego SlayerLab/gollem-corpus-2b-pl
Browse files
README.md
CHANGED
|
@@ -5,6 +5,7 @@ language:
|
|
| 5 |
library_name: transformers
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
datasets:
|
|
|
|
| 8 |
- SlayerLab/polish-dynaword
|
| 9 |
tags:
|
| 10 |
- gpt2
|
|
@@ -126,6 +127,6 @@ Benchmark i protok贸艂 ewaluacyjny: **OrisTeam** ([Polish-SLM-Benchmark](https:/
|
|
| 126 |
|
| 127 |
## Reprodukcja
|
| 128 |
|
| 129 |
-
Trening: `train_125m.py --run-id gollem_v3_e2b --data gollem_v2_train_32k.bin --epochs 2 --batch 64 --accum-steps 4 --lr 3e-4` (resume z ckpt v2). Ewaluacja: `board_eval.py` (domain-PMI). 艢lad: repo `amd-torch`.
|
| 130 |
|
| 131 |
**Autor:** Arkadiusz S艂ota.
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
pipeline_tag: text-generation
|
| 7 |
datasets:
|
| 8 |
+
- SlayerLab/gollem-corpus-2b-pl
|
| 9 |
- SlayerLab/polish-dynaword
|
| 10 |
tags:
|
| 11 |
- gpt2
|
|
|
|
| 127 |
|
| 128 |
## Reprodukcja
|
| 129 |
|
| 130 |
+
Trening: `train_125m.py --run-id gollem_v3_e2b --data gollem_v2_train_32k.bin --epochs 2 --batch 64 --accum-steps 4 --lr 3e-4` (resume z ckpt v2). Dane treningowe jawnie: [`SlayerLab/gollem-corpus-2b-pl`](https://huggingface.co/datasets/SlayerLab/gollem-corpus-2b-pl) (dok艂adny korpus v2/v3). Ewaluacja: `board_eval.py` (domain-PMI). 艢lad: repo `amd-torch`.
|
| 131 |
|
| 132 |
**Autor:** Arkadiusz S艂ota.
|