Instructions to use MarioBoscoGPU/fqpegaqmsmbd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MarioBoscoGPU/fqpegaqmsmbd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MarioBoscoGPU/fqpegaqmsmbd", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MarioBoscoGPU/fqpegaqmsmbd", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MarioBoscoGPU/fqpegaqmsmbd with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MarioBoscoGPU/fqpegaqmsmbd" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MarioBoscoGPU/fqpegaqmsmbd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MarioBoscoGPU/fqpegaqmsmbd
- SGLang
How to use MarioBoscoGPU/fqpegaqmsmbd 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 "MarioBoscoGPU/fqpegaqmsmbd" \ --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": "MarioBoscoGPU/fqpegaqmsmbd", "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 "MarioBoscoGPU/fqpegaqmsmbd" \ --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": "MarioBoscoGPU/fqpegaqmsmbd", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MarioBoscoGPU/fqpegaqmsmbd with Docker Model Runner:
docker model run hf.co/MarioBoscoGPU/fqpegaqmsmbd
Configuration Parsing Warning:In UNKNOWN_FILENAME: "auto_map.AutoTokenizer" must be a string
Private LLM Hugging Face Wrapper
This repository wraps private_LLM_model.py as a custom Hugging Face
Transformers model. The private script is loaded only at runtime.
Loading this model requires
trust_remote_code=Truebecause it uses custom model and tokenizer code.
Install
pip install -r requirements.txt
Standard Text Generation Pipeline
from transformers import pipeline
generator = pipeline(
"text-generation",
model="YOUR_USERNAME/YOUR_REPO",
trust_remote_code=True,
)
print(generator("Write a short greeting.", max_new_tokens=64))
Direct Model Loading
from transformers import AutoModelForCausalLM
from transformers import AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"YOUR_USERNAME/YOUR_REPO",
trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
"YOUR_USERNAME/YOUR_REPO",
trust_remote_code=True,
)
print(model.generate_text("Write a short greeting."))
Optional Pipeline
from transformers import pipeline
pipe = pipeline(
"private-llm",
model=".",
trust_remote_code=True,
)
print(pipe("Write a short greeting."))
Publish To The Hub
Authenticate first:
hf auth login
Then upload the current folder:
python publish_to_hub.py YOUR_USERNAME/YOUR_REPO
The publish script creates a private model repository by default. Use
--public only if you want the Hub repo to publicly expose
private_LLM_model.py.
Private Script Entrypoints
The wrapper auto-detects these common patterns:
- Loader functions:
load_model,create_model,build_model,get_model,load_llm - Model objects:
model,llm,MODEL,LLM_MODEL - Model classes:
PrivateLLM,LLM,Model - Generation methods/functions:
generate_text,generate,complete,predict,chat,__call__
If the script is meant to be run directly instead of imported, set this in
config.json:
{
"execution_mode": "subprocess"
}
Subprocess mode sends the prompt to stdin by default. It also sets
PRIVATE_LLM_PROMPT and PRIVATE_LLM_KWARGS environment variables.
To pin exact names without changing your private script, set fields like:
{
"loader_function": "load_model",
"generate_function": "generate"
}
If your private script returns the full prompt plus completion instead of only the completion text, set:
{
"private_output_includes_prompt": true
}
- Downloads last month
- 203