Instructions to use augustocsc/gpt-m-multi-var with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use augustocsc/gpt-m-multi-var with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="augustocsc/gpt-m-multi-var")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("augustocsc/gpt-m-multi-var") model = AutoModelForCausalLM.from_pretrained("augustocsc/gpt-m-multi-var") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use augustocsc/gpt-m-multi-var with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "augustocsc/gpt-m-multi-var" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "augustocsc/gpt-m-multi-var", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/augustocsc/gpt-m-multi-var
- SGLang
How to use augustocsc/gpt-m-multi-var 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 "augustocsc/gpt-m-multi-var" \ --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": "augustocsc/gpt-m-multi-var", "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 "augustocsc/gpt-m-multi-var" \ --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": "augustocsc/gpt-m-multi-var", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use augustocsc/gpt-m-multi-var with Docker Model Runner:
docker model run hf.co/augustocsc/gpt-m-multi-var
gpt-m-multi-var
This model is a fine-tuned version of augustocsc/gpt-m on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0023
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0002
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- training_steps: 5000
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.0053 | 0.55 | 500 | 0.0030 |
| 0.0034 | 1.1 | 1000 | 0.0029 |
| 0.0027 | 1.65 | 1500 | 0.0034 |
| 0.0027 | 2.2 | 2000 | 0.0026 |
| 0.0027 | 2.75 | 2500 | 0.0024 |
| 0.0027 | 3.3 | 3000 | 0.0024 |
| 0.0026 | 3.85 | 3500 | 0.0023 |
| 0.0024 | 4.4 | 4000 | 0.0024 |
| 0.0024 | 4.95 | 4500 | 0.0023 |
| 0.0025 | 5.5 | 5000 | 0.0023 |
Framework versions
- Transformers 4.26.1
- Pytorch 1.13.1+cu116
- Datasets 2.10.1
- Tokenizers 0.13.2
- Downloads last month
- 8