Text Generation
Transformers
Safetensors
GGUF
mistral
unsloth
trl
sft
conversational
text-generation-inference
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
Trained with Unsloth
Browse files- config.json +1 -1
- generation_config.json +1 -1
- model-00001-of-00003.safetensors +1 -1
- model-00002-of-00003.safetensors +1 -1
- model-00003-of-00003.safetensors +1 -1
config.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
"sliding_window": 4096,
|
| 22 |
"tie_word_embeddings": false,
|
| 23 |
"torch_dtype": "bfloat16",
|
| 24 |
-
"transformers_version": "4.39.
|
| 25 |
"unsloth_version": "2024.4",
|
| 26 |
"use_cache": true,
|
| 27 |
"vocab_size": 32000
|
|
|
|
| 21 |
"sliding_window": 4096,
|
| 22 |
"tie_word_embeddings": false,
|
| 23 |
"torch_dtype": "bfloat16",
|
| 24 |
+
"transformers_version": "4.39.0",
|
| 25 |
"unsloth_version": "2024.4",
|
| 26 |
"use_cache": true,
|
| 27 |
"vocab_size": 32000
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
-
"transformers_version": "4.39.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
+
"transformers_version": "4.39.0"
|
| 6 |
}
|
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4943162336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fb40606eebb577904764bf99f37b250dd4b6399c08cfc02096747ab9b255ef15
|
| 3 |
size 4943162336
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999819336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8ab5552a94b5447e046b38e42c60677ea83c5191693f93f0a713d8b2a9167a9
|
| 3 |
size 4999819336
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4540516344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e17e71be75c45534a856dd31e340224b80e9f94aaa32d6fb28224a206a504ec0
|
| 3 |
size 4540516344
|