Text Generation
Transformers
Safetensors
English
llama
code
text-generation-inference
Information Extraction
IE
Named Entity Recogniton
Event Extraction
Relation Extraction
LLaMA
Instructions to use HiTZ/Llama-3.1-GuideX-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HiTZ/Llama-3.1-GuideX-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HiTZ/Llama-3.1-GuideX-8B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HiTZ/Llama-3.1-GuideX-8B") model = AutoModelForCausalLM.from_pretrained("HiTZ/Llama-3.1-GuideX-8B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use HiTZ/Llama-3.1-GuideX-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HiTZ/Llama-3.1-GuideX-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTZ/Llama-3.1-GuideX-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HiTZ/Llama-3.1-GuideX-8B
- SGLang
How to use HiTZ/Llama-3.1-GuideX-8B 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 "HiTZ/Llama-3.1-GuideX-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTZ/Llama-3.1-GuideX-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "HiTZ/Llama-3.1-GuideX-8B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTZ/Llama-3.1-GuideX-8B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HiTZ/Llama-3.1-GuideX-8B with Docker Model Runner:
docker model run hf.co/HiTZ/Llama-3.1-GuideX-8B
Add library_name and link to Github repo
#3
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
datasets:
|
| 4 |
- HiTZ/GuideX_pre-training_data
|
| 5 |
- ACE05
|
|
@@ -12,10 +13,9 @@ datasets:
|
|
| 12 |
- wnut_17
|
| 13 |
language:
|
| 14 |
- en
|
|
|
|
| 15 |
metrics:
|
| 16 |
- f1
|
| 17 |
-
base_model:
|
| 18 |
-
- meta-llama/Llama-3.1-8B
|
| 19 |
tags:
|
| 20 |
- code
|
| 21 |
- text-generation-inference
|
|
@@ -25,12 +25,12 @@ tags:
|
|
| 25 |
- Event Extraction
|
| 26 |
- Relation Extraction
|
| 27 |
- LLaMA
|
|
|
|
|
|
|
| 28 |
---
|
| 29 |
|
| 30 |
<p align=
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
# Model Card for GuideX-8B
|
| 35 |
|
| 36 |
<p align="center">
|
|
@@ -46,8 +46,8 @@ tags:
|
|
| 46 |
This model achieves state-of-the-art performance on zero-shot Named Entity Recognition (NER) by first training on `GuideX`, a large-scale synthetic dataset with executable guidelines, and then fine-tuning on a collection of gold-standard IE datasets.
|
| 47 |
|
| 48 |
- **Homepage:** [https://neilus03.github.io/guidex.com/](https://neilus03.github.io/guidex.com/)
|
| 49 |
-
- **Paper:** [GuideX: Guided Synthetic Data Generation for Zero-Shot Information Extraction](https://
|
| 50 |
-
- **Code & Data:** The code and data for reproducing the GuideX methodology are available on the project homepage.
|
| 51 |
|
| 52 |
## Model Description
|
| 53 |
|
|
@@ -56,5 +56,4 @@ This model achieves state-of-the-art performance on zero-shot Named Entity Recog
|
|
| 56 |
- **Model type:** Decoder-only Transformer (Text Generation)
|
| 57 |
- **Language(s):** English
|
| 58 |
- **License:** Llama 2 Community License
|
| 59 |
-
- **Finetuned from model:** `meta-llama/Llama-3.1-8B`
|
| 60 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- meta-llama/Llama-3.1-8B
|
| 4 |
datasets:
|
| 5 |
- HiTZ/GuideX_pre-training_data
|
| 6 |
- ACE05
|
|
|
|
| 13 |
- wnut_17
|
| 14 |
language:
|
| 15 |
- en
|
| 16 |
+
license: apache-2.0
|
| 17 |
metrics:
|
| 18 |
- f1
|
|
|
|
|
|
|
| 19 |
tags:
|
| 20 |
- code
|
| 21 |
- text-generation-inference
|
|
|
|
| 25 |
- Event Extraction
|
| 26 |
- Relation Extraction
|
| 27 |
- LLaMA
|
| 28 |
+
pipeline_tag: text-generation
|
| 29 |
+
library_name: transformers
|
| 30 |
---
|
| 31 |
|
| 32 |
<p align=
|
| 33 |
|
|
|
|
|
|
|
| 34 |
# Model Card for GuideX-8B
|
| 35 |
|
| 36 |
<p align="center">
|
|
|
|
| 46 |
This model achieves state-of-the-art performance on zero-shot Named Entity Recognition (NER) by first training on `GuideX`, a large-scale synthetic dataset with executable guidelines, and then fine-tuning on a collection of gold-standard IE datasets.
|
| 47 |
|
| 48 |
- **Homepage:** [https://neilus03.github.io/guidex.com/](https://neilus03.github.io/guidex.com/)
|
| 49 |
+
- **Paper:** [GuideX: Guided Synthetic Data Generation for Zero-Shot Information Extraction](https://huggingface.co/papers/2506.00649)
|
| 50 |
+
- **Code & Data:** The code and data for reproducing the GuideX methodology are available on the project homepage and on [Github](https://github.com/HiTZ/GUIDEX).
|
| 51 |
|
| 52 |
## Model Description
|
| 53 |
|
|
|
|
| 56 |
- **Model type:** Decoder-only Transformer (Text Generation)
|
| 57 |
- **Language(s):** English
|
| 58 |
- **License:** Llama 2 Community License
|
| 59 |
+
- **Finetuned from model:** `meta-llama/Llama-3.1-8B`
|
|
|