Instructions to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF", filename="unsloth.F16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF 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 MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Use Docker
docker model run hf.co/MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with Ollama:
ollama run hf.co/MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
- Unsloth Studio
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF 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 MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF 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 MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF to start chatting
- Pi
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with Docker Model Runner:
docker model run hf.co/MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
- Lemonade
How to use MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MasterControlAIML/DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.DeepSeek-R1-Qwen2.5-1.5b-SFT-R1-JSON-Unstructured-To-Structured-GGUF-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files|
@@ -38,9 +38,8 @@ This repository provides a fine-tuned Qwen2 model optimized for transforming uns
|
|
| 38 |
- [Quick Start](#quick-start)
|
| 39 |
- [Using Unsloth for Fast Inference](#using-unsloth-for-fast-inference)
|
| 40 |
- [Using Transformers for Inference](#using-transformers-for-inference)
|
| 41 |
-
- [Prompt & Code
|
| 42 |
-
- [Example
|
| 43 |
-
- [Example 2: Advanced Data Extraction with LangChain](#example-2-advanced-data-extraction-with-langchain)
|
| 44 |
- [Sample Responses & Chain-of-Thought Explanations](#sample-responses--chain-of-thought-explanations)
|
| 45 |
- [Contributing](#contributing)
|
| 46 |
- [License](#license)
|
|
@@ -168,135 +167,10 @@ print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
|
|
| 168 |
|
| 169 |
---
|
| 170 |
|
| 171 |
-
## Prompt & Code
|
| 172 |
-
|
| 173 |
-
To guide the model in mapping unstructured text to a JSON schema, you can structure your prompt as follows.
|
| 174 |
-
|
| 175 |
-
### Example 1: Basic Alpaca Prompt Template
|
| 176 |
-
|
| 177 |
-
#### Code
|
| 178 |
-
|
| 179 |
-
```python
|
| 180 |
-
# Define the Alpaca prompt template
|
| 181 |
-
ALPACA_PROMPT = """
|
| 182 |
-
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
| 183 |
-
### Instruction:
|
| 184 |
-
{}
|
| 185 |
-
### Response:
|
| 186 |
-
{}
|
| 187 |
-
"""
|
| 188 |
-
|
| 189 |
-
# Sample text input describing a Quality Assurance Manual
|
| 190 |
-
TEXT = """
|
| 191 |
-
The Quality Assurance Manual for Manufacturing Process serves as a comprehensive guide to ensuring the quality of manufactured products and services. This manual encompasses all avenues of the QA process, including methodologies for testing, established standards, and documentation practices.
|
| 192 |
-
|
| 193 |
-
This document introduces the fundamental principles of quality assurance, emphasizing its role in achieving customer satisfaction across different manufacturing domains. According to the key metrics outlined in the Key Metrics for QA table, the defect rate stands at 0.5%, while the yield rate is 98%. These metrics underscore the importance of strict quality control measures to achieve high levels of product reliability.
|
| 194 |
-
|
| 195 |
-
---
|
| 196 |
-
|
| 197 |
-
Introduction to Quality Assurance
|
| 198 |
-
This section delves into the core principles of quality assurance, setting the foundation for the detailed methodologies that follow. Quality Assurance (QA) is a critical process that ensures that products and services fully meet customer expectations and industry standards.
|
| 199 |
-
|
| 200 |
-
QA in Manufacturing Processes
|
| 201 |
-
Manufacturing processes require strict adherence to QA procedures to ensure product reliability and safety. In this subsection, we explore QA in specific manufacturing processes, covering essential aspects such as process controls and raw material inspection. The QA Checklist for Manufacturing identifies critical processes that must be controlled, such as Process Controls (checked), but also highlights areas that need further attention, such as Raw Material Inspection (not check).
|
| 202 |
-
|
| 203 |
-
[QA Checklist for Manufacturing]
|
| 204 |
-
| Process Controls | True | Value: Yes |
|
| 205 |
-
| Raw Material Inspection | False | Value: No |
|
| 206 |
-
|
| 207 |
-
Confirming QA procedures are followed is essential to maintaining quality standards in manufacturing. This checklist includes two items: Defects Identified and Corrected and Regular Audits Conducted. For Defects Identified and Corrected, the item is checked, indicating that the relevant procedures are in place. However, Regular Audits Conducted is not checked, suggesting a potential gap in this area.
|
| 208 |
-
|
| 209 |
-
Quality Assurance Standards
|
| 210 |
-
ISO 9001 is a well-known standard for quality management systems, which forms the backbone of many manufacturing QA processes. This subsection discusses the adoption and benefits of ISO 9001. The QA Standards Comparison table provides a side-by-side view of two standards: ISO 9001 and ASQ Certified Quality Manager. ISO 9001 is checked, indicating full compliance, while ASQ Certified Quality Manager is not checked, indicating a need for further certification.
|
| 211 |
-
|
| 212 |
-
These standards, coupled with rigorous testing methodologies and comprehensive documentation, form the pillars of our quality assurance framework. Ensuring that all manufacturing processes comply with these standards not only improves product quality but also enhances customer trust and satisfaction. Achieving and maintaining such standards requires ongoing effort and commitment from all involved parties.
|
| 213 |
-
"""
|
| 214 |
-
|
| 215 |
-
# JSON schema defining the expected structure of the output
|
| 216 |
-
SCHEMA = """
|
| 217 |
-
{
|
| 218 |
-
"type": "object",
|
| 219 |
-
"properties": {
|
| 220 |
-
"id": {
|
| 221 |
-
"type": "string",
|
| 222 |
-
"description": "Dot-separated integers representing the unique identifier of each element in the hierarchy."
|
| 223 |
-
},
|
| 224 |
-
"title": {
|
| 225 |
-
"type": "string",
|
| 226 |
-
"description": "Descriptive title for the section or document."
|
| 227 |
-
},
|
| 228 |
-
"level": {
|
| 229 |
-
"type": "integer",
|
| 230 |
-
"description": "Hierarchy level starting from 0 (root)."
|
| 231 |
-
},
|
| 232 |
-
"level_type": {
|
| 233 |
-
"type": "string",
|
| 234 |
-
"enum": ["ROOT", "SECTION", "SUBSECTION", "DETAIL_N"],
|
| 235 |
-
"description": "Type of hierarchy level."
|
| 236 |
-
},
|
| 237 |
-
"component": {
|
| 238 |
-
"type": "array",
|
| 239 |
-
"items": {
|
| 240 |
-
"type": "object",
|
| 241 |
-
"properties": {
|
| 242 |
-
"idc": {
|
| 243 |
-
"type": "integer",
|
| 244 |
-
"description": "Component ID within the element."
|
| 245 |
-
},
|
| 246 |
-
"component_type": {
|
| 247 |
-
"type": "string",
|
| 248 |
-
"enum": ["PARAGRAPH", "TABLE", "CALCULATION", "CHECKBOX"],
|
| 249 |
-
"description": "Type of component (e.g., paragraph, table)."
|
| 250 |
-
},
|
| 251 |
-
"metadata": {
|
| 252 |
-
"type": "string",
|
| 253 |
-
"pattern": "<title>.+</title>|<note>.+</note>|<overview>.+</overview>",
|
| 254 |
-
"description": "Metadata such as title, note, or overview."
|
| 255 |
-
},
|
| 256 |
-
"properties": {
|
| 257 |
-
"type": "object",
|
| 258 |
-
"properties": {
|
| 259 |
-
"variables": {
|
| 260 |
-
"type": "array",
|
| 261 |
-
"items": {
|
| 262 |
-
"type": "object",
|
| 263 |
-
"properties": {
|
| 264 |
-
"idx": {"type": "string"},
|
| 265 |
-
"name": {"type": "string"},
|
| 266 |
-
"value": {},
|
| 267 |
-
"unit": {"type": ["null", "string"]},
|
| 268 |
-
"metrics": {"type": "boolean"},
|
| 269 |
-
"formula": {"type": "boolean"}
|
| 270 |
-
},
|
| 271 |
-
"required": ["idx", "name", "value"]
|
| 272 |
-
}
|
| 273 |
-
},
|
| 274 |
-
"content": {
|
| 275 |
-
"type": ["array"],
|
| 276 |
-
"items": {"type": "string"}
|
| 277 |
-
}
|
| 278 |
-
}
|
| 279 |
-
}
|
| 280 |
-
},
|
| 281 |
-
"required": ["idc", "component_type", "metadata", "properties"]
|
| 282 |
-
}
|
| 283 |
-
},
|
| 284 |
-
"children": {
|
| 285 |
-
"type": "array",
|
| 286 |
-
"items": {}
|
| 287 |
-
}
|
| 288 |
-
},
|
| 289 |
-
"required": ["id", "title", "level", "level_type", "component", "children"]
|
| 290 |
-
}
|
| 291 |
-
"""
|
| 292 |
-
|
| 293 |
-
# Now you would use your chosen inference method (e.g., via Unsloth or Transformers)
|
| 294 |
-
# to feed the prompt (ALPACA_PROMPT, TEXT, and SCHEMA) into the model.
|
| 295 |
-
```
|
| 296 |
-
|
| 297 |
---
|
| 298 |
|
| 299 |
-
### Example
|
| 300 |
|
| 301 |
#### Code
|
| 302 |
|
|
|
|
| 38 |
- [Quick Start](#quick-start)
|
| 39 |
- [Using Unsloth for Fast Inference](#using-unsloth-for-fast-inference)
|
| 40 |
- [Using Transformers for Inference](#using-transformers-for-inference)
|
| 41 |
+
- [Prompt & Code Example - How to run](#prompt--code-example)
|
| 42 |
+
- [Example: Advanced Data Extraction with LangChain](#example-advanced-data-extraction-with-langchain)
|
|
|
|
| 43 |
- [Sample Responses & Chain-of-Thought Explanations](#sample-responses--chain-of-thought-explanations)
|
| 44 |
- [Contributing](#contributing)
|
| 45 |
- [License](#license)
|
|
|
|
| 167 |
|
| 168 |
---
|
| 169 |
|
| 170 |
+
## Prompt & Code Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
---
|
| 172 |
|
| 173 |
+
### Example: Advanced Data Extraction with LangChain
|
| 174 |
|
| 175 |
#### Code
|
| 176 |
|