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
Informacja licencyjna / Licensing notice
Kod / Code
Implementacja treningowa projektu bazuje na karpathy/nanoGPT, udost臋pnianym na licencji MIT:
https://github.com/karpathy/nanoGPT/blob/master/LICENSE
Elementy kodu rozpowszechniane razem z projektem pozostaj膮 obj臋te w艂a艣ciwymi informacjami licencyjnymi ich autor贸w. Licencja MIT dotycz膮ca nanoGPT nie staje si臋 automatycznie licencj膮 danych treningowych ani wag modelu.
The training implementation is based on karpathy/nanoGPT, which is distributed under the MIT License:
https://github.com/karpathy/nanoGPT/blob/master/LICENSE
Code components distributed with the project remain subject to their respective authors' license notices. The nanoGPT MIT License does not automatically become the license of the training data or model weights.
Korpus i wagi / Corpus and weights
Model zosta艂 wytrenowany na SlayerLab/minimal-en-corpus-2.5b, agregacie danych z wielu 藕r贸de艂. Korpus nie nadaje dokumentom jednej wsp贸lnej licencji; ka偶dy dokument zachowuje identyfikator 藕r贸d艂a i podlega warunkom, licencjom oraz ograniczeniom w艂a艣ciwego upstreamowego datasetu.
Ze wzgl臋du na mieszany charakter tych warunk贸w repozytorium modelu u偶ywa metadanej Hugging Face license: other. Nie jest to przyznanie dodatkowych praw do materia艂贸w 藕r贸d艂owych. U偶ytkownik powinien przed u偶yciem, redystrybucj膮 lub zastosowaniem komercyjnym zapozna膰 si臋 z kart膮 korpusu i warunkami wszystkich w艂a艣ciwych 藕r贸de艂:
https://huggingface.co/datasets/SlayerLab/minimal-en-corpus-2.5b
The model was trained on SlayerLab/minimal-en-corpus-2.5b, an aggregate of multiple data sources. The corpus does not apply a single common license to its documents; each document retains its source identifier and remains subject to the terms, licenses, and restrictions of the applicable upstream dataset.
Because these terms are mixed, the model repository uses the Hugging Face metadata value license: other. This notice does not grant additional rights to upstream materials. Before use, redistribution, or commercial application, users should review the corpus card and the terms of every applicable source:
https://huggingface.co/datasets/SlayerLab/minimal-en-corpus-2.5b