The Main Collection
Collection
5 items • Updated • 1
How to use KrynexLabs/KrynexAI-1.3-50M-Mobile-Model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="KrynexLabs/KrynexAI-1.3-50M-Mobile-Model", trust_remote_code=True) # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("KrynexLabs/KrynexAI-1.3-50M-Mobile-Model", trust_remote_code=True, device_map="auto")How to use KrynexLabs/KrynexAI-1.3-50M-Mobile-Model with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/KrynexLabs/KrynexAI-1.3-50M-Mobile-Model
How to use KrynexLabs/KrynexAI-1.3-50M-Mobile-Model with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model" \
--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": "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model" \
--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": "KrynexLabs/KrynexAI-1.3-50M-Mobile-Model",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use KrynexLabs/KrynexAI-1.3-50M-Mobile-Model with Docker Model Runner:
docker model run hf.co/KrynexLabs/KrynexAI-1.3-50M-Mobile-Model
KrynexAI-50M is a 50M-parameter language model designed with a 16,384-token vocabulary and 16,384-token context window.
The model was trained on a 25B-token subset of the following datasets:
| Dataset | Token Allocation | Share |
|---|---|---|
| FineWeb-Edu | 7.50 billion | 30% |
| DCLM | 5.00 billion | 20% |
| Cosmopedia-v2 | 3.75 billion | 15% |
| FineMath-4+ | 3.75 billion | 15% |
| FinePhrase | 3.00 billion | 12% |
| NPset | 2.00 billion | 8% |
| Total | 25.00 billion | 100% |
Pebble (50M)
Apache 2.0
KrynexAI-50M does not require the mamba-ssm library and is intended to be usable with standard PyTorch-based inference implementations.
It may run on CUDA GPUs, AMD GPUs, Intel GPUs, and CPUs depending on the inference framework and available hardware acceleration.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("your-username/KrynexAI-50M", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("KeynexLabs/KrynexAI-50M-Mobile-Model")