Text Generation
Transformers
Safetensors
English
mistral
mistral-7b
instruct
finetune
gpt4
synthetic data
distillation
sharegpt
text-generation-inference
4-bit precision
gptq
Instructions to use TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ") model = AutoModelForMultimodalLM.from_pretrained("TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ
- SGLang
How to use TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ 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 "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ" \ --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": "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ", "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 "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ" \ --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": "TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/CollectiveCognition-v1.1-Mistral-7B-GPTQ
Fix tokenizer files
Browse files- tokenizer.json +0 -0
- tokenizer_config.json +8 -11
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -4,25 +4,25 @@
|
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|
| 7 |
-
"lstrip":
|
| 8 |
"normalized": false,
|
| 9 |
-
"rstrip":
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
"1": {
|
| 14 |
"content": "<s>",
|
| 15 |
-
"lstrip":
|
| 16 |
"normalized": false,
|
| 17 |
-
"rstrip":
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
"2": {
|
| 22 |
"content": "</s>",
|
| 23 |
-
"lstrip":
|
| 24 |
"normalized": false,
|
| 25 |
-
"rstrip":
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
}
|
|
@@ -37,9 +37,6 @@
|
|
| 37 |
"sp_model_kwargs": {},
|
| 38 |
"spaces_between_special_tokens": false,
|
| 39 |
"tokenizer_class": "LlamaTokenizer",
|
| 40 |
-
"tokenizer_file": "/home/teknium/.cache/huggingface/hub/models--mistralai--Mistral-7B-v0.1/snapshots/f966a600a1f2c35a067dcb16b24bbf9ac3b85799/tokenizer.json",
|
| 41 |
-
"trust_remote_code": false,
|
| 42 |
"unk_token": "<unk>",
|
| 43 |
-
"use_default_system_prompt": true
|
| 44 |
-
|
| 45 |
-
}
|
|
|
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
"1": {
|
| 14 |
"content": "<s>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
"single_word": false,
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
"2": {
|
| 22 |
"content": "</s>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
"single_word": false,
|
| 27 |
"special": true
|
| 28 |
}
|
|
|
|
| 37 |
"sp_model_kwargs": {},
|
| 38 |
"spaces_between_special_tokens": false,
|
| 39 |
"tokenizer_class": "LlamaTokenizer",
|
|
|
|
|
|
|
| 40 |
"unk_token": "<unk>",
|
| 41 |
+
"use_default_system_prompt": true
|
| 42 |
+
}
|
|
|