Instructions to use mjpsm/checkin-generator-distilgpt2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mjpsm/checkin-generator-distilgpt2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mjpsm/checkin-generator-distilgpt2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mjpsm/checkin-generator-distilgpt2") model = AutoModelForCausalLM.from_pretrained("mjpsm/checkin-generator-distilgpt2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mjpsm/checkin-generator-distilgpt2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mjpsm/checkin-generator-distilgpt2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mjpsm/checkin-generator-distilgpt2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mjpsm/checkin-generator-distilgpt2
- SGLang
How to use mjpsm/checkin-generator-distilgpt2 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 "mjpsm/checkin-generator-distilgpt2" \ --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": "mjpsm/checkin-generator-distilgpt2", "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 "mjpsm/checkin-generator-distilgpt2" \ --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": "mjpsm/checkin-generator-distilgpt2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use mjpsm/checkin-generator-distilgpt2 with Docker Model Runner:
docker model run hf.co/mjpsm/checkin-generator-distilgpt2
๐ง Model Overview
| Field | Details |
|---|---|
| Model Name | mjpsm/checkin-generator-distilgpt2 |
| Base Model | distilgpt2 |
| Task | Text Generation (Causal Language Modeling) |
| Training Data | ~20,000 cleaned student check-ins |
| Framework | Hugging Face Transformers |
| Use Case | Generate CIC-style check-ins from prompts |
โจ Example
Input:
Today i worked on
Output:
Today i worked on making some progress on getting the authentication set up. It's been a bit of a struggle, but I think i'm finally starting to get the hang of it
โ๏ธ How to Use
๐น Install Dependencies
pip install transformers torch
๐น Load Model & Tokenizer
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "mjpsm/checkin-generator-distilgpt2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
๐น Generate Text
import torch
def generate(prompt, max_length=50):
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(
inputs["input_ids"],
max_length=max_length,
do_sample=True,
top_k=50,
top_p=0.95,
temperature=0.8,
pad_token_id=tokenizer.eos_token_id
)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generate("today i worked on"))
๐ฏ Use Cases
- ๐งโ๐ป Student check-in generator
- ๐ค Slack / Discord bots for daily reflections
- ๐ Writing assistance tools
- ๐ง AI coaching and feedback systems
- ๐ Auto-completion for journaling platforms
โ ๏ธ Limitations
- May occasionally repeat phrases or generate generic responses
- Performance depends on prompt quality
- Not designed for factual accuracy or external knowledge retrieval
๐ฎ Future Improvements
- Add topic classification (e.g., debugging, frontend, ML)
- Improve dataset diversity for richer outputs
- Deploy as an API or integrate into CIC workflows
- Add reinforcement learning or prompt tuning
๐ค Author
Mazamesso Meba (Mazzy)
๐ค Hugging Face: https://huggingface.co/mjpsm
๐ Notes
This project demonstrates the power of fine-tuning pretrained language models for domain-specific text generation. Instead of training from scratch, leveraging existing models allows for faster development and significantly better results.
- Downloads last month
- 8
Model tree for mjpsm/checkin-generator-distilgpt2
Base model
distilbert/distilgpt2