Instructions to use ibrahimlasfar/elasfar-AI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibrahimlasfar/elasfar-AI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ibrahimlasfar/elasfar-AI")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ibrahimlasfar/elasfar-AI") model = AutoModelForCausalLM.from_pretrained("ibrahimlasfar/elasfar-AI") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ibrahimlasfar/elasfar-AI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ibrahimlasfar/elasfar-AI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ibrahimlasfar/elasfar-AI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ibrahimlasfar/elasfar-AI
- SGLang
How to use ibrahimlasfar/elasfar-AI 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 "ibrahimlasfar/elasfar-AI" \ --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": "ibrahimlasfar/elasfar-AI", "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 "ibrahimlasfar/elasfar-AI" \ --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": "ibrahimlasfar/elasfar-AI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ibrahimlasfar/elasfar-AI with Docker Model Runner:
docker model run hf.co/ibrahimlasfar/elasfar-AI
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ibrahimlasfar/elasfar-AI")# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ibrahimlasfar/elasfar-AI")
model = AutoModelForCausalLM.from_pretrained("ibrahimlasfar/elasfar-AI")elasfar-AI
Model Description
The elasfar-AI model is a fine-tuned language model designed to answer questions about
my personal portfolio, including my projects (e.g., Mark AI ), skills, and professional experience.
It is intended for use in an interactive Q&A feature on my personal website for educational and
experimental purposes.
Intended Use
- Primary Use Case: Powering a Q&A feature to provide information about my skills, projects, and experience.
- Intended Audience: Visitors to my personal portfolio website, including potential employers, collaborators, or curious users.
- Tasks: Question answering, text generation.
Training Data
The model was fine-tuned on a custom dataset (training_data.csv) containing question-answer pairs related to
my personal portfolio, projects, and skills. The dataset includes curated examples to ensure accurate and relevant responses.
How to Use
You can use this model via the Hugging Face Inference API. Example:
from huggingface_hub import InferenceClient
client = InferenceClient(token="YOUR_HF_TOKEN")
response = client.text_generation("How the United States was discovered ?", model="ibrahimlasfar/elasfar-AI")
print(response)
- Downloads last month
- -
# Gated model: Login with a HF token with gated access permission hf auth login