Instructions to use bbunzeck/gpt-wee-medium-curriculum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bbunzeck/gpt-wee-medium-curriculum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="bbunzeck/gpt-wee-medium-curriculum")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("bbunzeck/gpt-wee-medium-curriculum") model = AutoModelForCausalLM.from_pretrained("bbunzeck/gpt-wee-medium-curriculum", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use bbunzeck/gpt-wee-medium-curriculum with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "bbunzeck/gpt-wee-medium-curriculum" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "bbunzeck/gpt-wee-medium-curriculum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/bbunzeck/gpt-wee-medium-curriculum
- SGLang
How to use bbunzeck/gpt-wee-medium-curriculum 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 "bbunzeck/gpt-wee-medium-curriculum" \ --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": "bbunzeck/gpt-wee-medium-curriculum", "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 "bbunzeck/gpt-wee-medium-curriculum" \ --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": "bbunzeck/gpt-wee-medium-curriculum", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use bbunzeck/gpt-wee-medium-curriculum with Docker Model Runner:
docker model run hf.co/bbunzeck/gpt-wee-medium-curriculum
Commit History
-
Update README.md
Verified signature6b25043 -
Update README.md
Verified signature76d971f -
Create README.md
Verified signature- GPT-2 model submitted by team CLAUSE Bielefeld to the BabyLM challenge 2023 - implements a very naive curriculum learning approach inspired by usage-based linguistics: training examples are ordered according to complexity measures from research on child-directed speech (please consult paper for more info) Citation: ``` @inproceedings{bunzeck-zarriess-2023-gpt, title = "{GPT}-wee: How Small Can a Small Language Model Really Get?", author = "Bunzeck, Bastian and Zarrie{\ss}, Sina", editor = "Warstadt, Alex and Mueller, Aaron and Choshen, Leshem and Wilcox, Ethan and Zhuang, Chengxu and Ciro, Juan and Mosquera, Rafael and Paranjabe, Bhargavi and Williams, Adina and Linzen, Tal and Cotterell, Ryan", booktitle = "Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning", month = dec, year = "2023", address = "Singapore", publisher = "As…8b56581