Text Generation
Transformers
Safetensors
English
gpt2
causal-lm
nanogpt
bpe
educational
base-model
Eval Results (legacy)
text-generation-inference
Instructions to use SlayerLab/pollock-mini-lm-125m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SlayerLab/pollock-mini-lm-125m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SlayerLab/pollock-mini-lm-125m")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SlayerLab/pollock-mini-lm-125m") model = AutoModelForCausalLM.from_pretrained("SlayerLab/pollock-mini-lm-125m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SlayerLab/pollock-mini-lm-125m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SlayerLab/pollock-mini-lm-125m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SlayerLab/pollock-mini-lm-125m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SlayerLab/pollock-mini-lm-125m
- SGLang
How to use SlayerLab/pollock-mini-lm-125m 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/pollock-mini-lm-125m" \ --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/pollock-mini-lm-125m", "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/pollock-mini-lm-125m" \ --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/pollock-mini-lm-125m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SlayerLab/pollock-mini-lm-125m with Docker Model Runner:
docker model run hf.co/SlayerLab/pollock-mini-lm-125m
Popraw opis projektu i tokeny specjalne
Browse files- README.md +3 -3
- release_manifest.json +2 -2
README.md
CHANGED
|
@@ -45,7 +45,7 @@ model-index:
|
|
| 45 |
|
| 46 |
Nazwa modelu luźno nawiązuje do gestu malarskiego Jacksona Pollocka i idei kontrolowanego eksperymentu z przypadkiem. nanoGPT pełni tu rolę płótna, na którym różne dane, konfiguracje i decyzje treningowe tworzą odmienne wzorce zachowania modelu. Istotny jest nie tylko końcowy rezultat, ale również obserwacja procesu i wpływu poszczególnych składników eksperymentu.
|
| 47 |
|
| 48 |
-
Prostota jest celowa: projekt ma pomagać osobom rozpoczynającym tworzenie modeli zrozumieć, które decyzje dotyczące architektury, danych i treningu wpływają na wynik, a następnie przenieść te metody do własnych eksperymentów.
|
| 49 |
|
| 50 |
### Architektura i tokenizer
|
| 51 |
|
|
@@ -57,7 +57,7 @@ Prostota jest celowa: projekt ma pomagać osobom rozpoczynającym tworzenie mode
|
|
| 57 |
| Maksymalny kontekst | 2048 tokenów |
|
| 58 |
| Słownik | 12 288 tokenów |
|
| 59 |
| Tokenizer | byte-level BPE, pretokenizacja w stylu GPT-2 |
|
| 60 |
-
| Tokeny specjalne |
|
| 61 |
|
| 62 |
### Dane
|
| 63 |
|
|
@@ -207,7 +207,7 @@ def fibonacci(n):)) = (n - 1) + (n - 1) + ( n - 1) + ( n - 2) + ( n - 1) + ( n -
|
|
| 207 |
|
| 208 |
The model's name loosely refers to Jackson Pollock's painterly gesture and to the idea of a controlled experiment with chance. nanoGPT serves as a canvas on which different data, configurations, and training decisions create distinct patterns of model behavior. What matters is not only the final result, but also observing the process and the influence of each component of the experiment.
|
| 209 |
|
| 210 |
-
The simplicity is intentional. The project is meant to help newcomers understand how architecture, data, and training choices affect model quality and reuse the same methods in their own experiments.
|
| 211 |
|
| 212 |
### Architecture and tokenizer
|
| 213 |
|
|
|
|
| 45 |
|
| 46 |
Nazwa modelu luźno nawiązuje do gestu malarskiego Jacksona Pollocka i idei kontrolowanego eksperymentu z przypadkiem. nanoGPT pełni tu rolę płótna, na którym różne dane, konfiguracje i decyzje treningowe tworzą odmienne wzorce zachowania modelu. Istotny jest nie tylko końcowy rezultat, ale również obserwacja procesu i wpływu poszczególnych składników eksperymentu.
|
| 47 |
|
| 48 |
+
Prostota jest celowa: projekt ma pomagać osobom rozpoczynającym tworzenie modeli — włączając w to autora — zrozumieć, które decyzje dotyczące architektury, danych i treningu wpływają na wynik, a następnie przenieść te metody do własnych eksperymentów.
|
| 49 |
|
| 50 |
### Architektura i tokenizer
|
| 51 |
|
|
|
|
| 57 |
| Maksymalny kontekst | 2048 tokenów |
|
| 58 |
| Słownik | 12 288 tokenów |
|
| 59 |
| Tokenizer | byte-level BPE, pretokenizacja w stylu GPT-2 |
|
| 60 |
+
| Tokeny specjalne | <code><|endoftext|></code>, <code><|im_start|></code>, <code><|im_end|></code> |
|
| 61 |
|
| 62 |
### Dane
|
| 63 |
|
|
|
|
| 207 |
|
| 208 |
The model's name loosely refers to Jackson Pollock's painterly gesture and to the idea of a controlled experiment with chance. nanoGPT serves as a canvas on which different data, configurations, and training decisions create distinct patterns of model behavior. What matters is not only the final result, but also observing the process and the influence of each component of the experiment.
|
| 209 |
|
| 210 |
+
The simplicity is intentional. The project is meant to help newcomers — including the author — understand how architecture, data, and training choices affect model quality and reuse the same methods in their own experiments.
|
| 211 |
|
| 212 |
### Architecture and tokenizer
|
| 213 |
|
release_manifest.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
| 10 |
},
|
| 11 |
"artifacts": {
|
| 12 |
"README.md": {
|
| 13 |
-
"bytes":
|
| 14 |
-
"sha256": "
|
| 15 |
},
|
| 16 |
"LICENSE.md": {
|
| 17 |
"bytes": 2257,
|
|
|
|
| 10 |
},
|
| 11 |
"artifacts": {
|
| 12 |
"README.md": {
|
| 13 |
+
"bytes": 12057,
|
| 14 |
+
"sha256": "bc4300a7944d3e9ed2725478458266979a42e496e17a289fbd4737d95149d366"
|
| 15 |
},
|
| 16 |
"LICENSE.md": {
|
| 17 |
"bytes": 2257,
|