Text Generation
Transformers
Safetensors
English
mistral
text-generation-inference
unsloth
trl
sft
conversational
Instructions to use AlSamCur123/Mistral-Small-InstructContinuedFine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlSamCur123/Mistral-Small-InstructContinuedFine with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlSamCur123/Mistral-Small-InstructContinuedFine") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlSamCur123/Mistral-Small-InstructContinuedFine") model = AutoModelForCausalLM.from_pretrained("AlSamCur123/Mistral-Small-InstructContinuedFine") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use AlSamCur123/Mistral-Small-InstructContinuedFine with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlSamCur123/Mistral-Small-InstructContinuedFine" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlSamCur123/Mistral-Small-InstructContinuedFine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AlSamCur123/Mistral-Small-InstructContinuedFine
- SGLang
How to use AlSamCur123/Mistral-Small-InstructContinuedFine 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 "AlSamCur123/Mistral-Small-InstructContinuedFine" \ --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": "AlSamCur123/Mistral-Small-InstructContinuedFine", "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 "AlSamCur123/Mistral-Small-InstructContinuedFine" \ --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": "AlSamCur123/Mistral-Small-InstructContinuedFine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use AlSamCur123/Mistral-Small-InstructContinuedFine with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlSamCur123/Mistral-Small-InstructContinuedFine to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AlSamCur123/Mistral-Small-InstructContinuedFine to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AlSamCur123/Mistral-Small-InstructContinuedFine to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="AlSamCur123/Mistral-Small-InstructContinuedFine", max_seq_length=2048, ) - Docker Model Runner
How to use AlSamCur123/Mistral-Small-InstructContinuedFine with Docker Model Runner:
docker model run hf.co/AlSamCur123/Mistral-Small-InstructContinuedFine
Trained with Unsloth
Browse files- config.json +3 -3
- generation_config.json +1 -1
- model-00001-of-00009.safetensors +1 -1
- model-00002-of-00009.safetensors +1 -1
- model-00003-of-00009.safetensors +1 -1
- model-00004-of-00009.safetensors +1 -1
- model-00005-of-00009.safetensors +1 -1
- model-00006-of-00009.safetensors +1 -1
- model-00007-of-00009.safetensors +1 -1
- model-00008-of-00009.safetensors +1 -1
- model-00009-of-00009.safetensors +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "AlSamCur123/Mistral-Small-
|
| 3 |
"architectures": [
|
| 4 |
"MistralForCausalLM"
|
| 5 |
],
|
|
@@ -23,8 +23,8 @@
|
|
| 23 |
"sliding_window": null,
|
| 24 |
"tie_word_embeddings": false,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
-
"transformers_version": "4.
|
| 27 |
-
"unsloth_version": "
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 32768
|
| 30 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "AlSamCur123/Mistral-Small-InstructContinuedFine",
|
| 3 |
"architectures": [
|
| 4 |
"MistralForCausalLM"
|
| 5 |
],
|
|
|
|
| 23 |
"sliding_window": null,
|
| 24 |
"tie_word_embeddings": false,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
+
"transformers_version": "4.47.1",
|
| 27 |
+
"unsloth_version": "2025.1.6",
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 32768
|
| 30 |
}
|
generation_config.json
CHANGED
|
@@ -4,5 +4,5 @@
|
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"max_length": 131072,
|
| 6 |
"pad_token_id": 750,
|
| 7 |
-
"transformers_version": "4.
|
| 8 |
}
|
|
|
|
| 4 |
"eos_token_id": 2,
|
| 5 |
"max_length": 131072,
|
| 6 |
"pad_token_id": 750,
|
| 7 |
+
"transformers_version": "4.47.1"
|
| 8 |
}
|
model-00001-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4882298776
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5695228bb54913082d2ab7cad7cb0183f1cdb05256e81d60a95e45a483833f20
|
| 3 |
size 4882298776
|
model-00002-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4983012160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e6e06a68509c19a990522269d3d89c4fbf957e34e28fdeb5df055cdf61d4663
|
| 3 |
size 4983012160
|
model-00003-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4957821336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c437f2d8fbf963896cc51b20b15194484b41911039d8e1098eac75253c371776
|
| 3 |
size 4957821336
|
model-00004-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4882323744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da06ed1aa924466bbe74aba2298cb9be5acca94f2f737446f6f72a3cee385171
|
| 3 |
size 4882323744
|
model-00005-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4983012192
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96ab2a99a80ec68fef0d2369e890713388c0e36caec67663473d23843b50e6ac
|
| 3 |
size 4983012192
|
model-00006-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4957821336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:feea3ee5a1a8bff9362a9942d05a1f4560b3bf7704a1cb9ce5f590303214d860
|
| 3 |
size 4957821336
|
model-00007-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4882323744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8df220c96da9ca8129d8746fe5614471de54dd0fc9f56e31898546372bdb2704
|
| 3 |
size 4882323744
|
model-00008-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4983012192
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:847a6d2e34c3d51c0ff4d35df9195a8c883c77eb36a9d9e106ce00a3be44fc73
|
| 3 |
size 4983012192
|
model-00009-of-00009.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4982999056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c722a986410479eb6936a5a23cfde28ade26a4dfe49c1286bc794380fec47e4
|
| 3 |
size 4982999056
|