Text Generation
Transformers
Safetensors
GGUF
mistral
unsloth
trl
sft
conversational
text-generation-inference
Run this model with HF Jobs
Run codingwithlewis/mistralmeme on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/codingwithlewis/mistralmeme. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/codingwithlewis/mistralmeme on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/codingwithlewis/mistralmeme. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/codingwithlewis/mistralmeme. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use codingwithlewis/mistralmeme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codingwithlewis/mistralmeme with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="codingwithlewis/mistralmeme") 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("codingwithlewis/mistralmeme") model = AutoModelForCausalLM.from_pretrained("codingwithlewis/mistralmeme", 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
- llama.cpp
How to use codingwithlewis/mistralmeme with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf codingwithlewis/mistralmeme # Run inference directly in the terminal: llama cli -hf codingwithlewis/mistralmeme
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf codingwithlewis/mistralmeme # Run inference directly in the terminal: llama cli -hf codingwithlewis/mistralmeme
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf codingwithlewis/mistralmeme # Run inference directly in the terminal: ./build/bin/llama cli -hf codingwithlewis/mistralmeme
Use Docker
docker model run hf.co/codingwithlewis/mistralmeme
- Llama new
- LM Studio
- Jan
- vLLM
How to use codingwithlewis/mistralmeme with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "codingwithlewis/mistralmeme" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "codingwithlewis/mistralmeme", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/codingwithlewis/mistralmeme
- SGLang
How to use codingwithlewis/mistralmeme 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 "codingwithlewis/mistralmeme" \ --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": "codingwithlewis/mistralmeme", "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 "codingwithlewis/mistralmeme" \ --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": "codingwithlewis/mistralmeme", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use codingwithlewis/mistralmeme with Ollama:
ollama run hf.co/codingwithlewis/mistralmeme
- Unsloth Desktop
- Docker Model Runner
How to use codingwithlewis/mistralmeme with Docker Model Runner:
docker model run hf.co/codingwithlewis/mistralmeme
- Lemonade
How to use codingwithlewis/mistralmeme with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull codingwithlewis/mistralmeme
Run and chat with the model
lemonade run user.mistralmeme-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload tokenizer
Browse filesFiles changed (4)
- added_tokens.jsonAdded+34
- special_tokens_map.json+2-2
- tokenizer.json+294-1
- tokenizer_config.json+261-3
12345678910111213141516171819202122232425262728293031323334{ "<pad10>": 32010, "<pad11>": 32011, "<pad12>": 32012, "<pad13>": 32013, "<pad14>": 32014, "<pad15>": 32015, "<pad16>": 32016, "<pad17>": 32017, "<pad18>": 32018, "<pad19>": 32019, "<pad20>": 32020, "<pad21>": 32021, "<pad22>": 32022, "<pad23>": 32023, "<pad24>": 32024, "<pad25>": 32025, "<pad26>": 32026, "<pad27>": 32027, "<pad28>": 32028, "<pad29>": 32029, "<pad2>": 32002, "<pad30>": 32030, "<pad31>": 32031, "<pad3>": 32003, "<pad4>": 32004, "<pad5>": 32005, "<pad6>": 32006, "<pad7>": 32007, "<pad8>": 32008, "<pad9>": 32009, "<|im_end|>": 32000, "<|im_start|>": 32001}6 unmodified lines78910111213141516171819206 unmodified lines"single_word": false},"eos_token": {"content": "</s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"pad_token": {"content": "<unk>","lstrip": false,"normalized": false,"rstrip": false,6 unmodified lines78910111213141516171819206 unmodified lines"single_word": false},"eos_token": {"content": "<|im_end|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false},"pad_token": {"content": "</s>","lstrip": false,"normalized": false,"rstrip": false,
12345622 unmodified lines293031323334{"version": "1.0","truncation": null,"padding": null,"added_tokens": [{22 unmodified lines"rstrip": false,"normalized": false,"special": true}],"normalizer": {123456789101122 unmodified lines343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327{"version": "1.0","truncation": {"direction": "Right","max_length": 2048,"strategy": "LongestFirst","stride": 0},"padding": null,"added_tokens": [{22 unmodified lines"rstrip": false,"normalized": false,"special": true},{"id": 32000,"content": "<|im_end|>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": true},{"id": 32001,"content": "<|im_start|>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32002,"content": "<pad2>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32003,"content": "<pad3>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32004,"content": "<pad4>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32005,"content": "<pad5>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32006,"content": "<pad6>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32007,"content": "<pad7>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32008,"content": "<pad8>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32009,"content": "<pad9>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32010,"content": "<pad10>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32011,"content": "<pad11>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32012,"content": "<pad12>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32013,"content": "<pad13>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32014,"content": "<pad14>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32015,"content": "<pad15>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32016,"content": "<pad16>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32017,"content": "<pad17>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32018,"content": "<pad18>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32019,"content": "<pad19>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32020,"content": "<pad20>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32021,"content": "<pad21>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32022,"content": "<pad22>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32023,"content": "<pad23>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32024,"content": "<pad24>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32025,"content": "<pad25>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32026,"content": "<pad26>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32027,"content": "<pad27>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32028,"content": "<pad28>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32029,"content": "<pad29>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32030,"content": "<pad30>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false},{"id": 32031,"content": "<pad31>","single_word": false,"lstrip": false,"rstrip": false,"normalized": false,"special": false}],"normalizer": {
12345618 unmodified lines2526272829303132333435363738394041424344{"add_bos_token": true,"add_eos_token": false,"added_tokens_decoder": {"0": {"content": "<unk>",18 unmodified lines"rstrip": false,"single_word": false,"special": true}},"additional_special_tokens": [],"bos_token": "<s>","chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{% if messages[1]['role'] == 'user' %}{{ '[INST] ' + messages[0]['content'] + ' ' + messages[1]['content'] + ' [/INST]' }}{% set loop_messages = messages[2:] %}{% else %}{{ '[INST] ' + messages[0]['content'] + ' [/INST]' }}{% set loop_messages = messages[1:] %}{% endif %}{% else %}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}","clean_up_tokenization_spaces": false,"eos_token": "</s>","legacy": true,"model_max_length": 32768,"pad_token": "<unk>","padding_side": "left","sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "LlamaTokenizer","unk_token": "<unk>","use_default_system_prompt": false}123456718 unmodified lines2627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302{"add_bos_token": true,"add_eos_token": false,"add_prefix_space": true,"added_tokens_decoder": {"0": {"content": "<unk>",18 unmodified lines"rstrip": false,"single_word": false,"special": true},"32000": {"content": "<|im_end|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"32001": {"content": "<|im_start|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32002": {"content": "<pad2>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32003": {"content": "<pad3>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32004": {"content": "<pad4>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32005": {"content": "<pad5>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32006": {"content": "<pad6>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32007": {"content": "<pad7>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32008": {"content": "<pad8>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32009": {"content": "<pad9>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32010": {"content": "<pad10>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32011": {"content": "<pad11>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32012": {"content": "<pad12>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32013": {"content": "<pad13>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32014": {"content": "<pad14>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32015": {"content": "<pad15>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32016": {"content": "<pad16>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32017": {"content": "<pad17>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32018": {"content": "<pad18>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32019": {"content": "<pad19>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32020": {"content": "<pad20>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32021": {"content": "<pad21>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32022": {"content": "<pad22>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32023": {"content": "<pad23>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32024": {"content": "<pad24>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32025": {"content": "<pad25>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32026": {"content": "<pad26>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32027": {"content": "<pad27>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32028": {"content": "<pad28>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32029": {"content": "<pad29>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32030": {"content": "<pad30>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false},"32031": {"content": "<pad31>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": false}},"additional_special_tokens": [],"bos_token": "<s>","chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{% if messages[1]['role'] == 'user' %}{{ '[INST] ' + messages[0]['content'] + ' ' + messages[1]['content'] + ' [/INST]' }}{% set loop_messages = messages[2:] %}{% else %}{{ '[INST] ' + messages[0]['content'] + ' [/INST]' }}{% set loop_messages = messages[1:] %}{% endif %}{% else %}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}","clean_up_tokenization_spaces": false,"eos_token": "<|im_end|>","legacy": true,"model_max_length": 32768,"pad_token": "</s>","padding_side": "left","sp_model_kwargs": {},"spaces_between_special_tokens": false,"tokenizer_class": "LlamaTokenizer","unk_token": "<unk>","use_default_system_prompt": false,"use_fast": true}
added_tokens.jsonAdded+34
special_tokens_map.json+2-2
tokenizer.json+294-1
tokenizer_config.json+261-3