Instructions to use Defetya/ru-mistral-easylm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Defetya/ru-mistral-easylm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Defetya/ru-mistral-easylm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Defetya/ru-mistral-easylm") model = AutoModelForCausalLM.from_pretrained("Defetya/ru-mistral-easylm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Defetya/ru-mistral-easylm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Defetya/ru-mistral-easylm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Defetya/ru-mistral-easylm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Defetya/ru-mistral-easylm
- SGLang
How to use Defetya/ru-mistral-easylm 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 "Defetya/ru-mistral-easylm" \ --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": "Defetya/ru-mistral-easylm", "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 "Defetya/ru-mistral-easylm" \ --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": "Defetya/ru-mistral-easylm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Defetya/ru-mistral-easylm with Docker Model Runner:
docker model run hf.co/Defetya/ru-mistral-easylm
Commit History
-
Delete mistral-corpus-2
Verified signaturee63edff -
Upload mistral-corpus-2 with huggingface_hub
Verified signature185e149
-
Upload easylm_mistral
Verified signaturec4aa733 -
Upload 3 files
Verified signature3ce0253
-
Upload mistral-corpus-2 with huggingface_hub
Verified signature403c16d
-
Delete easylm_mistral
Verified signatureb986740 -
Upload LlamaForCausalLM
Verified signaturebc2c3db -
Upload mistral-corpus-1 with huggingface_hub
Verified signatureb8d1ded
-
Upload easylm_mistral with huggingface_hub
Verified signature9d88fb3
-
initial commit
Verified signaturef895951