Instructions to use bertin-project/bertin-gpt-j-6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bertin-project/bertin-gpt-j-6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bertin-project/bertin-gpt-j-6B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bertin-project/bertin-gpt-j-6B") model = AutoModelForCausalLM.from_pretrained("bertin-project/bertin-gpt-j-6B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bertin-project/bertin-gpt-j-6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bertin-project/bertin-gpt-j-6B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bertin-project/bertin-gpt-j-6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bertin-project/bertin-gpt-j-6B
- SGLang
How to use bertin-project/bertin-gpt-j-6B 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 "bertin-project/bertin-gpt-j-6B" \ --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": "bertin-project/bertin-gpt-j-6B", "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 "bertin-project/bertin-gpt-j-6B" \ --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": "bertin-project/bertin-gpt-j-6B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bertin-project/bertin-gpt-j-6B with Docker Model Runner:
docker model run hf.co/bertin-project/bertin-gpt-j-6B
Update README.md
Browse files
README.md
CHANGED
|
@@ -104,6 +104,15 @@ To cite this model:
|
|
| 104 |
|
| 105 |
If you use this model, we would love to hear about it! Reach out on twitter, GitHub, Discord, or shoot us an email.
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
## Acknowledgements
|
| 108 |
|
| 109 |
This project would not have been possible without compute generously provided by the National Library of Norway and Google through the
|
|
|
|
| 104 |
|
| 105 |
If you use this model, we would love to hear about it! Reach out on twitter, GitHub, Discord, or shoot us an email.
|
| 106 |
|
| 107 |
+
## Team
|
| 108 |
+
|
| 109 |
+
- Javier de la Rosa ([versae](https://huggingface.co/versae))
|
| 110 |
+
- Eduardo González ([edugp](https://huggingface.co/edugp))
|
| 111 |
+
- Paulo Villegas ([paulo](https://huggingface.co/paulo))
|
| 112 |
+
- Pablo González de Prado ([Pablogps](https://huggingface.co/Pablogps))
|
| 113 |
+
- Manu Romero ([mrm8488](https://huggingface.co/))
|
| 114 |
+
- María Grandury ([mariagrandury](https://huggingface.co/))
|
| 115 |
+
|
| 116 |
## Acknowledgements
|
| 117 |
|
| 118 |
This project would not have been possible without compute generously provided by the National Library of Norway and Google through the
|