numind / NuExtract-large

huggingface.co
Total runs: 40
24-hour runs: 0
7-day runs: 0
30-day runs: -35
Model's Last Updated: Junio 28 2024
text-generation

Introduction of NuExtract-large

Model Details of NuExtract-large

Structure Extraction Model by NuMind 🔥

NuExtract-large is a version of phi-3-small , 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.

Try the base model here: https://huggingface.co/spaces/numind/NuExtract

We also provide a tiny (0.5B) and base (3.8B) version of this model: NuExtract-tiny and NuExtract

Checkout other models by NuMind:

Benchmark

Benchmark 0 shot (will release soon):

Benchmark fine-tunning (see blog post):

Usage

To use the model:

import json
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch


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", trust_remote_code=True, torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained("numind/NuExtract", 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 token": "",
        "Architecture": []
    },
    "Usage": {
        "Use case": [],
        "Licence": ""
    }
}"""

prediction = predict_NuExtract(model, tokenizer, text, schema, example=["","",""])
print(prediction)

Runs of numind NuExtract-large on huggingface.co

40
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-35
30-day runs

More Information About NuExtract-large huggingface.co Model

More NuExtract-large license Visit here:

https://choosealicense.com/licenses/mit

NuExtract-large huggingface.co

NuExtract-large huggingface.co is an AI model on huggingface.co that provides NuExtract-large's model effect (), which can be used instantly with this numind NuExtract-large model. huggingface.co supports a free trial of the NuExtract-large model, and also provides paid use of the NuExtract-large. Support call NuExtract-large model through api, including Node.js, Python, http.

NuExtract-large huggingface.co Url

https://huggingface.co/numind/NuExtract-large

numind NuExtract-large online free

NuExtract-large huggingface.co is an online trial and call api platform, which integrates NuExtract-large's modeling effects, including api services, and provides a free online trial of NuExtract-large, you can try NuExtract-large online for free by clicking the link below.

numind NuExtract-large online free url in huggingface.co:

https://huggingface.co/numind/NuExtract-large

NuExtract-large install

NuExtract-large is an open source model from GitHub that offers a free installation service, and any user can find NuExtract-large on GitHub to install. At the same time, huggingface.co provides the effect of NuExtract-large install, users can directly use NuExtract-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

NuExtract-large install url in huggingface.co:

https://huggingface.co/numind/NuExtract-large

Url of NuExtract-large

NuExtract-large huggingface.co Url

Provider of NuExtract-large huggingface.co

numind
ORGANIZATIONS

Other API from numind

huggingface.co

Total runs: 108.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:Noviembre 06 2024
huggingface.co

Total runs: 17.2K
Run Growth: -465
Growth Rate: -2.71%
Updated:Octubre 17 2024
huggingface.co

Total runs: 14.7K
Run Growth: 1.6K
Growth Rate: 10.83%
Updated:Febrero 26 2025
huggingface.co

Total runs: 7.1K
Run Growth: -79.0K
Growth Rate: -1108.25%
Updated:Julio 17 2025
huggingface.co

Total runs: 7.1K
Run Growth: 1.2K
Growth Rate: 16.59%
Updated:Abril 30 2024
huggingface.co

Total runs: 6.6K
Run Growth: 503
Growth Rate: 7.66%
Updated:Mayo 07 2024
huggingface.co

Total runs: 1.4K
Run Growth: 997
Growth Rate: 71.16%
Updated:Octubre 17 2024
huggingface.co

Total runs: 83
Run Growth: 62
Growth Rate: 74.70%
Updated:Febrero 03 2025
huggingface.co

Total runs: 22
Run Growth: -3
Growth Rate: -13.64%
Updated:Septiembre 06 2023
huggingface.co

Total runs: 11
Run Growth: 2
Growth Rate: 18.18%
Updated:Abril 30 2024
huggingface.co

Total runs: 4
Run Growth: 1
Growth Rate: 25.00%
Updated:Agosto 17 2023
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:Agosto 17 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Agosto 23 2024