Instructions to use houcine-bdk/cpath-academic-search-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use houcine-bdk/cpath-academic-search-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="houcine-bdk/cpath-academic-search-model")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("houcine-bdk/cpath-academic-search-model") model = AutoModelForCausalLM.from_pretrained("houcine-bdk/cpath-academic-search-model") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use houcine-bdk/cpath-academic-search-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "houcine-bdk/cpath-academic-search-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "houcine-bdk/cpath-academic-search-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/houcine-bdk/cpath-academic-search-model
- SGLang
How to use houcine-bdk/cpath-academic-search-model 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 "houcine-bdk/cpath-academic-search-model" \ --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": "houcine-bdk/cpath-academic-search-model", "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 "houcine-bdk/cpath-academic-search-model" \ --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": "houcine-bdk/cpath-academic-search-model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use houcine-bdk/cpath-academic-search-model with Docker Model Runner:
docker model run hf.co/houcine-bdk/cpath-academic-search-model
CPath - Canadian Academic Pathfinder
CPath is a specialized language model fine-tuned on Canadian university program information, built to provide accurate guidance about academic programs, admission requirements, and educational pathways at Canadian institutions.
Model Description
CPath is based on TinyLlama and has been specifically fine-tuned on a curated dataset of 23,970 question-answer pairs about Canadian university programs. The model specializes in:
- Providing detailed program information
- Explaining admission requirements and processes
- Describing course structures and academic pathways
- Offering guidance on university selection
- Answering specific questions about Canadian universities
Training Details
- Base Model: TinyLlama-1.1B
- Training Data: 23,970 QA pairs from official university sources
- Universities Covered: McGill University, University of British Columbia
- Training Approach: Instruction fine-tuning with careful attention to academic accuracy
Intended Uses
This model is designed to assist:
- Prospective students researching university programs
- Academic advisors and counselors
- Educational institutions
- Anyone seeking accurate information about Canadian university programs
Limitations & Biases
- Coverage currently limited to McGill and UBC
- Information cutoff date: 2024
- Should not be used as the sole source for admission decisions
- May not cover all specialized programs or requirements
- Responses should be verified against official university sources
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained("houcine-bdk/cpath-academic-search-model", torch_dtype=torch.float16)
tokenizer = AutoTokenizer.from_pretrained("houcine-bdk/cpath-academic-search-model")
# Format your question
def get_response(question):
prompt = f"[INST] {question} [/INST]"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate response
outputs = model.generate(
**inputs,
max_length=512,
temperature=0.7,
top_p=0.95,
repetition_penalty=1.15
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
return response.split("[/INST]")[-1].strip()
# Example usage
question = "What are the admission requirements for Computer Science at McGill?"
response = get_response(question)
print(response)
Ethical Considerations
- The model should be used as an informational tool, not as a replacement for official university guidance
- All information should be verified against official university sources
- The model may occasionally generate incorrect information and should not be used for critical decisions
Training Data
The model was trained on the Canadian Universities Q&A Dataset, which contains carefully curated information from official university websites. The dataset is available at: houcine-bdk/cpath-mcgill-ubc
License
This model is released under the Apache 2.0 License.
Citation
If you use this model in your research, please cite:
@software{cpath_2025,
title={CPath: Canadian Academic Pathfinder},
author={houcine-bdk},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/houcine-bdk/cpath-academic-search-model}
}
Contact
For questions or issues:
- HuggingFace: houcine-bdk
- Downloads last month
- 6