Instructions to use mmkuznecov/model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mmkuznecov/model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mmkuznecov/model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mmkuznecov/model") model = AutoModelForCausalLM.from_pretrained("mmkuznecov/model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mmkuznecov/model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mmkuznecov/model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mmkuznecov/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mmkuznecov/model
- SGLang
How to use mmkuznecov/model 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 "mmkuznecov/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": "mmkuznecov/model", "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 "mmkuznecov/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": "mmkuznecov/model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mmkuznecov/model with Docker Model Runner:
docker model run hf.co/mmkuznecov/model
Commit History
-
End of training
5a98ad0 -
Training in progress, step 9500
bd3c75c -
Training in progress, step 9000
36b85be -
Training in progress, step 8500
38cf5b8 -
Training in progress, step 8000
761643c -
Training in progress, step 7500
beee72e -
Training in progress, step 7000
e1bef44 -
Training in progress, step 6500
7b911ae -
Training in progress, step 6000
da83bc8 -
Training in progress, step 5500
b19f84a -
Training in progress, step 5000
59bd353 -
Training in progress, step 4500
1d7e580 -
Training in progress, step 4000
6461763 -
Training in progress, step 3500
c1ac0df -
Training in progress, step 3000
a8b02ff -
Training in progress, step 2500
28731f4 -
Training in progress, step 2000
f530f57 -
Training in progress, step 1500
dd81819 -
Training in progress, step 1000
a8ddc5f -
Training in progress, step 500
c39bd97 -
initial commit
61b91ef