Text Generation
Transformers
PyTorch
Safetensors
qwen2
unsloth
trl
sft
conversational
text-generation-inference
Instructions to use Mauro6519/DeepSeekMiniHandling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mauro6519/DeepSeekMiniHandling with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mauro6519/DeepSeekMiniHandling") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mauro6519/DeepSeekMiniHandling") model = AutoModelForCausalLM.from_pretrained("Mauro6519/DeepSeekMiniHandling", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mauro6519/DeepSeekMiniHandling with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mauro6519/DeepSeekMiniHandling" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mauro6519/DeepSeekMiniHandling", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Mauro6519/DeepSeekMiniHandling
- SGLang
How to use Mauro6519/DeepSeekMiniHandling 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 "Mauro6519/DeepSeekMiniHandling" \ --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": "Mauro6519/DeepSeekMiniHandling", "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 "Mauro6519/DeepSeekMiniHandling" \ --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": "Mauro6519/DeepSeekMiniHandling", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use Mauro6519/DeepSeekMiniHandling 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 Mauro6519/DeepSeekMiniHandling 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 Mauro6519/DeepSeekMiniHandling to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Mauro6519/DeepSeekMiniHandling to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Mauro6519/DeepSeekMiniHandling", max_seq_length=2048, ) - Docker Model Runner
How to use Mauro6519/DeepSeekMiniHandling with Docker Model Runner:
docker model run hf.co/Mauro6519/DeepSeekMiniHandling
Trained with Unsloth
Browse files- README.md +2 -0
- config.json +0 -12
- pytorch_model.bin +1 -1
README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- unsloth
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# Model Card for Model ID
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
tags:
|
| 4 |
- unsloth
|
| 5 |
+
- trl
|
| 6 |
+
- sft
|
| 7 |
---
|
| 8 |
|
| 9 |
# Model Card for Model ID
|
config.json
CHANGED
|
@@ -17,18 +17,6 @@
|
|
| 17 |
"num_hidden_layers": 28,
|
| 18 |
"num_key_value_heads": 2,
|
| 19 |
"pad_token_id": 151654,
|
| 20 |
-
"quantization_config": {
|
| 21 |
-
"bnb_4bit_compute_dtype": "float16",
|
| 22 |
-
"bnb_4bit_quant_type": "nf4",
|
| 23 |
-
"bnb_4bit_use_double_quant": true,
|
| 24 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 25 |
-
"llm_int8_has_fp16_weight": false,
|
| 26 |
-
"llm_int8_skip_modules": null,
|
| 27 |
-
"llm_int8_threshold": 6.0,
|
| 28 |
-
"load_in_4bit": true,
|
| 29 |
-
"load_in_8bit": false,
|
| 30 |
-
"quant_method": "bitsandbytes"
|
| 31 |
-
},
|
| 32 |
"rms_norm_eps": 1e-06,
|
| 33 |
"rope_scaling": null,
|
| 34 |
"rope_theta": 10000,
|
|
|
|
| 17 |
"num_hidden_layers": 28,
|
| 18 |
"num_key_value_heads": 2,
|
| 19 |
"pad_token_id": 151654,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
"rms_norm_eps": 1e-06,
|
| 21 |
"rope_scaling": null,
|
| 22 |
"rope_theta": 10000,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554290006
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9b911bd373d3ad06fc9897cf5cf40a95aac81e55fc94e32aff3e36f0824c7c5
|
| 3 |
size 3554290006
|