Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use Akoo/mpbbLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Akoo/mpbbLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Akoo/mpbbLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Akoo/mpbbLM") model = AutoModelForCausalLM.from_pretrained("Akoo/mpbbLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Akoo/mpbbLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Akoo/mpbbLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Akoo/mpbbLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Akoo/mpbbLM
- SGLang
How to use Akoo/mpbbLM 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 "Akoo/mpbbLM" \ --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": "Akoo/mpbbLM", "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 "Akoo/mpbbLM" \ --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": "Akoo/mpbbLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Akoo/mpbbLM with Docker Model Runner:
docker model run hf.co/Akoo/mpbbLM
Training in progress, step 10
Browse filesFiles changed (5)
4 unmodified lines5678910111213141516174 unmodified lines"GPT2LMHeadModel"],"attn_pdrop": 0.1,"bos_token_id": 0,"embd_pdrop": 0.1,"eos_token_id": 0,"initializer_range": 0.02,"layer_norm_epsilon": 1e-05,"model_type": "gpt2","n_ctx": 100,"n_embd": 768,"n_head": 12,"n_inner": null,4 unmodified lines5678910111213141516174 unmodified lines"GPT2LMHeadModel"],"attn_pdrop": 0.1,"bos_token_id": 50256,"embd_pdrop": 0.1,"eos_token_id": 50256,"initializer_range": 0.02,"layer_norm_epsilon": 1e-05,"model_type": "gpt2","n_ctx": 1024,"n_embd": 768,"n_head": 12,"n_inner": null,
123version https://git-lfs.github.com/spec/v1oid sha256:b356d9cd807321b1879355f00e4922de1b4ac1a0f298f34f824ff6b56c2c9ff9size 456667881123version https://git-lfs.github.com/spec/v1oid sha256:081428d85f8e1e409a0a15b3d1bd2193ea0532020748aea629a5adb5ca0a523dsize 456667881
123version https://git-lfs.github.com/spec/v1oid sha256:9647d951a007b3c858507cf75adf55f4a9c1dc8076384f37cfea196ede86c9d6size 5376123version https://git-lfs.github.com/spec/v1oid sha256:455b9d1879d2e6992437d8b537b572897dcb8e3ce7d657bddb93dd61ea5e9596size 4320123version https://git-lfs.github.com/spec/v1oid sha256:78ed9d1615888cf71143d49d9fb728e06b44bda4ccb206f1af0dfac3b44e00d0size 3311123version https://git-lfs.github.com/spec/v1oid sha256:4772f76b5265065a50f996e6362c246f2d8f2485a73cf1d64689ac933913bcd0size 3311
config.json+3-3
pytorch_model.bin+1-1
runs/Aug19_06-56-44_7a40bd7a314c/1660892267.56799/events.out.tfevents.1660892267.7a40bd7a314c.56.5Added+3
runs/Aug19_06-56-44_7a40bd7a314c/events.out.tfevents.1660892267.7a40bd7a314c.56.4Added+3
training_args.bin+1-1