Text Generation
Transformers
Safetensors
English
mistral
trl
sft
sgd
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use nroggendorff/mayo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nroggendorff/mayo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nroggendorff/mayo") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nroggendorff/mayo") model = AutoModelForCausalLM.from_pretrained("nroggendorff/mayo", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nroggendorff/mayo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nroggendorff/mayo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nroggendorff/mayo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nroggendorff/mayo
- SGLang
How to use nroggendorff/mayo 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 "nroggendorff/mayo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nroggendorff/mayo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "nroggendorff/mayo" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nroggendorff/mayo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nroggendorff/mayo with Docker Model Runner:
docker model run hf.co/nroggendorff/mayo
Commit History
-
Upload tokenizer
Verified signatureb89ae96 -
Upload MistralForCausalLM
Verified signaturef26166d
-
Upload tokenizer
Verified signatureffecbde -
Upload model
Verified signature255afb4
-
Upload tokenizer
Verified signature7228b09 -
Upload MistralForCausalLM
Verified signature9ce4c1f
-
Upload tokenizer
Verified signature016b0c6 -
Upload MistralForCausalLM
Verified signature7185494
-
Upload tokenizer
Verified signaturef132435 -
Upload MistralForCausalLM
Verified signaturefbc19e9
-
Delete tokenizer_config.json
Verified signature0e3c73d -
Delete tokenizer.model
Verified signaturee4a505c -
Delete tokenizer.json
Verified signature9f981c6 -
Delete special_tokens_map.json
Verified signature95a411a -
Delete model.safetensors.index.json
Verified signature6d6ba00 -
Delete model-00006-of-00006.safetensors
Verified signature5c3dd3f -
Delete model-00005-of-00006.safetensors
Verified signature5cc35b6 -
Delete config.json
Verified signaturef1a694f -
Delete generation_config.json
Verified signature9c9104c -
Delete model-00004-of-00006.safetensors
Verified signature01e0614 -
Delete model-00003-of-00006.safetensors
Verified signatureb88d7a4 -
Delete model-00002-of-00006.safetensors
Verified signatureaf82d81 -
Delete model.safetensors
Verified signature3d86ca5 -
Delete model-00001-of-00006.safetensors
Verified signature8e72a8e -
Upload tokenizer
Verified signaturecd69b71 -
Upload LlamaForCausalLM
Verified signature891a3c2 -
Update README.md
Verified signature9b7fe7a -
Upload tokenizer
Verified signature67972f7 -
Upload MistralForCausalLM
Verified signature154895d -
initial commit
Verified signaturec33e08b