Text Generation
Transformers
PyTorch
English
gpt2
Generated from Trainer
generation
text-generation-inference
Instructions to use mpuig/job-experience with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mpuig/job-experience with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mpuig/job-experience")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mpuig/job-experience") model = AutoModelForCausalLM.from_pretrained("mpuig/job-experience") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mpuig/job-experience with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mpuig/job-experience" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mpuig/job-experience", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mpuig/job-experience
- SGLang
How to use mpuig/job-experience 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 "mpuig/job-experience" \ --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": "mpuig/job-experience", "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 "mpuig/job-experience" \ --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": "mpuig/job-experience", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mpuig/job-experience with Docker Model Runner:
docker model run hf.co/mpuig/job-experience
Librarian Bot: Add base_model information to model
#2
by librarian-bot - opened
README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
- generated_from_trainer
|
| 5 |
- gpt2
|
| 6 |
- generation
|
| 7 |
-
model-index:
|
| 8 |
-
- name: resumes_model
|
| 9 |
-
results: []
|
| 10 |
datasets:
|
| 11 |
- mpuig/job-experience
|
| 12 |
widget:
|
| 13 |
-
- text: As a Software Developer, I
|
| 14 |
example_title: Software Developer
|
| 15 |
-
- text: As a Software Architect, I
|
| 16 |
example_title: Software Architect
|
| 17 |
-
- text: As a web developer, I
|
| 18 |
example_title: Web Developer
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
-
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: mit
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
- gpt2
|
| 8 |
- generation
|
|
|
|
|
|
|
|
|
|
| 9 |
datasets:
|
| 10 |
- mpuig/job-experience
|
| 11 |
widget:
|
| 12 |
+
- text: As a Software Developer, I
|
| 13 |
example_title: Software Developer
|
| 14 |
+
- text: As a Software Architect, I
|
| 15 |
example_title: Software Architect
|
| 16 |
+
- text: As a web developer, I
|
| 17 |
example_title: Web Developer
|
| 18 |
+
base_model: GPT-2
|
| 19 |
+
model-index:
|
| 20 |
+
- name: resumes_model
|
| 21 |
+
results: []
|
| 22 |
---
|
| 23 |
|
| 24 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|