Instructions to use barbaroo/gptsw3-6.7B-translation-en-fo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use barbaroo/gptsw3-6.7B-translation-en-fo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="barbaroo/gptsw3-6.7B-translation-en-fo")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("barbaroo/gptsw3-6.7B-translation-en-fo") model = AutoModelForCausalLM.from_pretrained("barbaroo/gptsw3-6.7B-translation-en-fo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use barbaroo/gptsw3-6.7B-translation-en-fo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "barbaroo/gptsw3-6.7B-translation-en-fo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "barbaroo/gptsw3-6.7B-translation-en-fo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/barbaroo/gptsw3-6.7B-translation-en-fo
- SGLang
How to use barbaroo/gptsw3-6.7B-translation-en-fo 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 "barbaroo/gptsw3-6.7B-translation-en-fo" \ --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": "barbaroo/gptsw3-6.7B-translation-en-fo", "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 "barbaroo/gptsw3-6.7B-translation-en-fo" \ --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": "barbaroo/gptsw3-6.7B-translation-en-fo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use barbaroo/gptsw3-6.7B-translation-en-fo with Docker Model Runner:
docker model run hf.co/barbaroo/gptsw3-6.7B-translation-en-fo
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,9 +13,8 @@ tags: []
|
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
| 20 |
- **Developed by:** [More Information Needed]
|
| 21 |
- **Funded by [optional]:** [More Information Needed]
|
|
@@ -120,7 +119,9 @@ Use the code below to get started with the model.
|
|
| 120 |
|
| 121 |
#### Metrics
|
| 122 |
|
| 123 |
-
|
|
|
|
|
|
|
| 124 |
|
| 125 |
[More Information Needed]
|
| 126 |
|
|
|
|
| 13 |
|
| 14 |
### Model Description
|
| 15 |
|
| 16 |
+
This is the merged version of the adapter (barbaroo/gptsw3_translate_synth_6.7B) and the base model (AI-Sweden-Models/gpt-sw3-6.7b-v2)
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
- **Developed by:** [More Information Needed]
|
| 20 |
- **Funded by [optional]:** [More Information Needed]
|
|
|
|
| 119 |
|
| 120 |
#### Metrics
|
| 121 |
|
| 122 |
+
BLEU score: 19.8
|
| 123 |
+
CHRF score: 52.4
|
| 124 |
+
|
| 125 |
|
| 126 |
[More Information Needed]
|
| 127 |
|