Image-to-Text
Transformers
Safetensors
qwen3_5
image-text-to-text
vision-language
vlm
document-understanding
structured-extraction
information-extraction
ocr
document-to-markdown
markdown
rag
reasoning
multilingual
conversational
Eval Results
Instructions to use numind/NuExtract3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use numind/NuExtract3 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="numind/NuExtract3") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("numind/NuExtract3") model = AutoModelForMultimodalLM.from_pretrained("numind/NuExtract3", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -547,7 +547,7 @@ data_url = f"data:image/png;base64,{image_base64}"
|
|
| 547 |
|
| 548 |
response = client.chat.completions.create(
|
| 549 |
model="numind/NuExtract3",
|
| 550 |
-
temperature=
|
| 551 |
messages=[
|
| 552 |
{
|
| 553 |
"role": "user",
|
|
@@ -579,7 +579,7 @@ Reasoning can be enabled for harder structured extraction or Markdown tasks.
|
|
| 579 |
```python
|
| 580 |
response = client.chat.completions.create(
|
| 581 |
model="numind/NuExtract3",
|
| 582 |
-
temperature=
|
| 583 |
messages=[
|
| 584 |
{
|
| 585 |
"role": "user",
|
|
@@ -634,7 +634,7 @@ template = {
|
|
| 634 |
|
| 635 |
response = client.chat.completions.create(
|
| 636 |
model="numind/NuExtract3",
|
| 637 |
-
temperature=0,
|
| 638 |
messages=[
|
| 639 |
{
|
| 640 |
"role": "developer",
|
|
@@ -694,7 +694,7 @@ client = OpenAI(
|
|
| 694 |
|
| 695 |
response = client.chat.completions.create(
|
| 696 |
model="numind/NuExtract3",
|
| 697 |
-
temperature=0,
|
| 698 |
messages=[
|
| 699 |
{
|
| 700 |
"role": "user",
|
|
@@ -762,7 +762,7 @@ jq -n \
|
|
| 762 |
--arg template "$TEMPLATE" \
|
| 763 |
'{
|
| 764 |
model: "numind/NuExtract3",
|
| 765 |
-
temperature: 0,
|
| 766 |
messages: [
|
| 767 |
{
|
| 768 |
role: "user",
|
|
@@ -801,7 +801,7 @@ jq -n \
|
|
| 801 |
--rawfile image_base64 "$IMAGE_BASE64_FILE" \
|
| 802 |
'{
|
| 803 |
model: "numind/NuExtract3",
|
| 804 |
-
temperature: 0,
|
| 805 |
messages: [
|
| 806 |
{
|
| 807 |
role: "user",
|
|
|
|
| 547 |
|
| 548 |
response = client.chat.completions.create(
|
| 549 |
model="numind/NuExtract3",
|
| 550 |
+
temperature=1,
|
| 551 |
messages=[
|
| 552 |
{
|
| 553 |
"role": "user",
|
|
|
|
| 579 |
```python
|
| 580 |
response = client.chat.completions.create(
|
| 581 |
model="numind/NuExtract3",
|
| 582 |
+
temperature=1,
|
| 583 |
messages=[
|
| 584 |
{
|
| 585 |
"role": "user",
|
|
|
|
| 634 |
|
| 635 |
response = client.chat.completions.create(
|
| 636 |
model="numind/NuExtract3",
|
| 637 |
+
temperature=0.2,
|
| 638 |
messages=[
|
| 639 |
{
|
| 640 |
"role": "developer",
|
|
|
|
| 694 |
|
| 695 |
response = client.chat.completions.create(
|
| 696 |
model="numind/NuExtract3",
|
| 697 |
+
temperature=0.2,
|
| 698 |
messages=[
|
| 699 |
{
|
| 700 |
"role": "user",
|
|
|
|
| 762 |
--arg template "$TEMPLATE" \
|
| 763 |
'{
|
| 764 |
model: "numind/NuExtract3",
|
| 765 |
+
temperature: 0.6,
|
| 766 |
messages: [
|
| 767 |
{
|
| 768 |
role: "user",
|
|
|
|
| 801 |
--rawfile image_base64 "$IMAGE_BASE64_FILE" \
|
| 802 |
'{
|
| 803 |
model: "numind/NuExtract3",
|
| 804 |
+
temperature: 0.6,
|
| 805 |
messages: [
|
| 806 |
{
|
| 807 |
role: "user",
|