Instructions to use marekzel/mz-model-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marekzel/mz-model-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="marekzel/mz-model-v1")# pip install -U transformers accelerate # Load model directly from transformers import MzModelV1 model = MzModelV1.from_pretrained("marekzel/mz-model-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use marekzel/mz-model-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "marekzel/mz-model-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "marekzel/mz-model-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/marekzel/mz-model-v1
- SGLang
How to use marekzel/mz-model-v1 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 "marekzel/mz-model-v1" \ --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": "marekzel/mz-model-v1", "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 "marekzel/mz-model-v1" \ --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": "marekzel/mz-model-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use marekzel/mz-model-v1 with Docker Model Runner:
docker model run hf.co/marekzel/mz-model-v1
Commit History
12 days ago
-
Update README.md
Verified signature696a70d -
Finetuned base model with everyday-conversations-llama3.1-2k to improve quality.
Verified signature6c1c67d
14 days ago
-
Update README.md
Verified signature5f08a81 -
Update README.md
Verified signature6a58cfc -
Update README.md
Verified signature## Model Description MzModelV1 is a decoder-only Transformer language model built from scratch using PyTorch and Hugging Face Transformers. It was created as an experiment to explore language model training on consumer hardware in a home lab environment. The project demonstrates that it is possible to train a language model with approximately 110 million parameters on a single consumer GPU. ## Model Details | Property | Value | |---|---| | Model name | MzModelV1 | | Architecture | Decoder-only Transformer | | Model type | `mz_model_v1` | | Parameters | 109.65 million | | Hidden size | 768 | | Number of layers | 12 | | Attention heads | 12 | | Feed-forward dimension | 3,072 | | Vocabulary size | 32,000 | | Maximum sequence length | 512 tokens | | Positional encoding | Learned positional embeddings | | Attention mechanism | Causal multi-head self-attention | | Activation function | GELU | | Normalization | LayerNorm | | Weight tying | Input embeddings and output projection | | Traini…e90f102 -
Model files
Verified signature539c3c8 -
initial commit
Verified signatureaabc626