Text Generation
Transformers
Safetensors
mistral
text-generation-inference
8-bit precision
bitsandbytes
Instructions to use cools/LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cools/LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cools/LLM")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cools/LLM") model = AutoModelForCausalLM.from_pretrained("cools/LLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cools/LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cools/LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cools/LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cools/LLM
- SGLang
How to use cools/LLM 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 "cools/LLM" \ --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": "cools/LLM", "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 "cools/LLM" \ --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": "cools/LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cools/LLM with Docker Model Runner:
docker model run hf.co/cools/LLM
Upload MistralForCausalLM
Browse files- config.json +1 -1
- model-00001-of-00008.safetensors +2 -2
- model-00002-of-00008.safetensors +2 -2
- model-00003-of-00008.safetensors +2 -2
- model-00004-of-00008.safetensors +2 -2
- model-00005-of-00008.safetensors +2 -2
- model-00006-of-00008.safetensors +2 -2
- model-00007-of-00008.safetensors +2 -2
- model-00008-of-00008.safetensors +1 -1
config.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"rope_theta": 10000.0,
|
| 31 |
"sliding_window": 4096,
|
| 32 |
"tie_word_embeddings": false,
|
| 33 |
-
"torch_dtype": "
|
| 34 |
"transformers_version": "4.35.2",
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 32000
|
|
|
|
| 30 |
"rope_theta": 10000.0,
|
| 31 |
"sliding_window": 4096,
|
| 32 |
"tie_word_embeddings": false,
|
| 33 |
+
"torch_dtype": "bfloat16",
|
| 34 |
"transformers_version": "4.35.2",
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 32000
|
model-00001-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba6c999ffe83a97019a85daa94508e5cfe438cfe004aaba010ff1d654c1d49a6
|
| 3 |
+
size 959010760
|
model-00002-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae68bb40070ca177f460f5c6263b2bdbc6490963ba6f0f7decf07ec4ffd9955b
|
| 3 |
+
size 990731296
|
model-00003-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac1e04f3a35aada2049a7ae24d46b551dc87824d1488ba2fbc4e952f11be44e0
|
| 3 |
+
size 973914024
|
model-00004-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fab57f66b9d2db0d14f1ae20618e94208dde2cc925634d03305da1c760fca05
|
| 3 |
+
size 990731360
|
model-00005-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1eaa7ce66b8440cd1874c1286569facb0d5daf061be9c3af87d7df3e729334c7
|
| 3 |
+
size 973914056
|
model-00006-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa4d10fd28e7f5dae3e75576d637c9776aa360b199c92faf3e7f34114350ab8b
|
| 3 |
+
size 990731360
|
model-00007-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a1d890ae33469404f119258530b4939b8b609e13a5aae10d4d7c9eb02df45a7
|
| 3 |
+
size 973914056
|
model-00008-of-00008.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 656755424
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2656e33360e49ed6259e3441b5623f6dc4714af133a966928b5f82524eb1cc70
|
| 3 |
size 656755424
|