Instructions to use RichardErkhov/numind_-_NuExtract-tiny-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RichardErkhov/numind_-_NuExtract-tiny-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 RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/numind_-_NuExtract-tiny-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 RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/numind_-_NuExtract-tiny-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 RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf RichardErkhov/numind_-_NuExtract-tiny-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 RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/numind_-_NuExtract-tiny-gguf with Ollama:
ollama run hf.co/RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use RichardErkhov/numind_-_NuExtract-tiny-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/numind_-_NuExtract-tiny-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/numind_-_NuExtract-tiny-gguf:Q4_K_M
Run and chat with the model
lemonade run user.numind_-_NuExtract-tiny-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
NuExtract-tiny - GGUF
- Model creator: https://huggingface.co/numind/
- Original model: https://huggingface.co/numind/NuExtract-tiny/
| Name | Quant method | Size |
|---|---|---|
| NuExtract-tiny.Q2_K.gguf | Q2_K | 0.23GB |
| NuExtract-tiny.IQ3_XS.gguf | IQ3_XS | 0.24GB |
| NuExtract-tiny.IQ3_S.gguf | IQ3_S | 0.25GB |
| NuExtract-tiny.Q3_K_S.gguf | Q3_K_S | 0.25GB |
| NuExtract-tiny.IQ3_M.gguf | IQ3_M | 0.26GB |
| NuExtract-tiny.Q3_K.gguf | Q3_K | 0.26GB |
| NuExtract-tiny.Q3_K_M.gguf | Q3_K_M | 0.26GB |
| NuExtract-tiny.Q3_K_L.gguf | Q3_K_L | 0.28GB |
| NuExtract-tiny.IQ4_XS.gguf | IQ4_XS | 0.28GB |
| NuExtract-tiny.Q4_0.gguf | Q4_0 | 0.29GB |
| NuExtract-tiny.IQ4_NL.gguf | IQ4_NL | 0.29GB |
| NuExtract-tiny.Q4_K_S.gguf | Q4_K_S | 0.29GB |
| NuExtract-tiny.Q4_K.gguf | Q4_K | 0.3GB |
| NuExtract-tiny.Q4_K_M.gguf | Q4_K_M | 0.3GB |
| NuExtract-tiny.Q4_1.gguf | Q4_1 | 0.3GB |
| NuExtract-tiny.Q5_0.gguf | Q5_0 | 0.32GB |
| NuExtract-tiny.Q5_K_S.gguf | Q5_K_S | 0.32GB |
| NuExtract-tiny.Q5_K.gguf | Q5_K | 0.33GB |
| NuExtract-tiny.Q5_K_M.gguf | Q5_K_M | 0.33GB |
| NuExtract-tiny.Q5_1.gguf | Q5_1 | 0.34GB |
| NuExtract-tiny.Q6_K.gguf | Q6_K | 0.36GB |
| NuExtract-tiny.Q8_0.gguf | Q8_0 | 0.47GB |
Original model description:
license: mit language: - en base_model: Qwen/Qwen1.5-0.5B
Structure Extraction Model by NuMind 🔥
NuExtract_tiny is a version of Qwen1.5-0.5, fine-tuned on a private high-quality synthetic dataset for information extraction. To use the model, provide an input text (less than 2000 tokens) and a JSON template describing the information you need to extract.
Note: This model is purely extractive, so all text output by the model is present as is in the original text. You can also provide an example of output formatting to help the model understand your task more precisely.
Note: While this model provides good 0 shot performance, it is intended to be fine-tuned on a specific task (>=30 examples).
We also provide a base (3.8B) and large(7B) version of this model: NuExtract and NuExtract-large
Checkout other models by NuMind:
- SOTA Zero-shot NER Model NuNER Zero
- SOTA Multilingual Entity Recognition Foundation Model: link
- SOTA Sentiment Analysis Foundation Model: English, Multilingual
Usage
To use the model:
import json
from transformers import AutoModelForCausalLM, AutoTokenizer
def predict_NuExtract(model, tokenizer, text, schema, example=["","",""]):
schema = json.dumps(json.loads(schema), indent=4)
input_llm = "<|input|>\n### Template:\n" + schema + "\n"
for i in example:
if i != "":
input_llm += "### Example:\n"+ json.dumps(json.loads(i), indent=4)+"\n"
input_llm += "### Text:\n"+text +"\n<|output|>\n"
input_ids = tokenizer(input_llm, return_tensors="pt", truncation=True, max_length=4000).to("cuda")
output = tokenizer.decode(model.generate(**input_ids)[0], skip_special_tokens=True)
return output.split("<|output|>")[1].split("<|end-output|>")[0]
model = AutoModelForCausalLM.from_pretrained("numind/NuExtract-tiny", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("numind/NuExtract-tiny", trust_remote_code=True)
model.to("cuda")
model.eval()
text = """We introduce Mistral 7B, a 7–billion-parameter language model engineered for
superior performance and efficiency. Mistral 7B outperforms the best open 13B
model (Llama 2) across all evaluated benchmarks, and the best released 34B
model (Llama 1) in reasoning, mathematics, and code generation. Our model
leverages grouped-query attention (GQA) for faster inference, coupled with sliding
window attention (SWA) to effectively handle sequences of arbitrary length with a
reduced inference cost. We also provide a model fine-tuned to follow instructions,
Mistral 7B – Instruct, that surpasses Llama 2 13B – chat model both on human and
automated benchmarks. Our models are released under the Apache 2.0 license.
Code: https://github.com/mistralai/mistral-src
Webpage: https://mistral.ai/news/announcing-mistral-7b/"""
schema = """{
"Model": {
"Name": "",
"Number of parameters": "",
"Number of max token": "",
"Architecture": []
},
"Usage": {
"Use case": [],
"Licence": ""
}
}"""
prediction = predict_NuExtract(model, tokenizer, text, schema, example=["","",""])
print(prediction)
- Downloads last month
- 470
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit