Text Generation
Transformers
Safetensors
phi3
Generated from Trainer
trl
sft
conversational
custom_code
text-generation-inference
Instructions to use IoakeimE/email_header_extractor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IoakeimE/email_header_extractor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IoakeimE/email_header_extractor", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("IoakeimE/email_header_extractor", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("IoakeimE/email_header_extractor", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IoakeimE/email_header_extractor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IoakeimE/email_header_extractor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IoakeimE/email_header_extractor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IoakeimE/email_header_extractor
- SGLang
How to use IoakeimE/email_header_extractor 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 "IoakeimE/email_header_extractor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IoakeimE/email_header_extractor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "IoakeimE/email_header_extractor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IoakeimE/email_header_extractor", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IoakeimE/email_header_extractor with Docker Model Runner:
docker model run hf.co/IoakeimE/email_header_extractor
Commit History
-
Training in progress, epoch 20
Verified signaturee13aa39 -
Training in progress, epoch 19
Verified signatureb177654 -
Training in progress, epoch 18
Verified signature3700e4d -
Training in progress, epoch 17
Verified signaturedc0fc1a -
Training in progress, epoch 16
Verified signature5877c3f -
Training in progress, epoch 15
Verified signature2d1d1bb -
Training in progress, epoch 14
Verified signatureba338b6 -
Training in progress, epoch 13
Verified signature683e913 -
Training in progress, epoch 12
Verified signature16cb329 -
Training in progress, epoch 11
Verified signaturec7f14f3 -
Training in progress, epoch 10
Verified signature8936213 -
Training in progress, epoch 9
Verified signature0a118ac -
Training in progress, epoch 8
Verified signature63b565b -
Training in progress, epoch 7
Verified signaturec0d4dff -
Training in progress, epoch 6
Verified signature0fd4a45 -
Training in progress, epoch 5
Verified signature85d7502 -
Training in progress, epoch 4
Verified signatured2e9b1e -
Training in progress, epoch 3
Verified signaturec993a06 -
Training in progress, epoch 2
Verified signaturea2c37b1 -
Training in progress, epoch 1
Verified signature59d3ef0 -
Update config.json
Verified signatureb3e9d9e -
Training in progress, epoch 3
Verified signature44355b7 -
Training in progress, epoch 2
Verified signature4bf3d29 -
Training in progress, epoch 1
Verified signature680fa27 -
initial commit
Verified signatured86e841