Instructions to use marutitecblic/HtmlTocode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marutitecblic/HtmlTocode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="marutitecblic/HtmlTocode", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("marutitecblic/HtmlTocode", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use marutitecblic/HtmlTocode with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "marutitecblic/HtmlTocode" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "marutitecblic/HtmlTocode", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/marutitecblic/HtmlTocode
- SGLang
How to use marutitecblic/HtmlTocode 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 "marutitecblic/HtmlTocode" \ --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": "marutitecblic/HtmlTocode", "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 "marutitecblic/HtmlTocode" \ --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": "marutitecblic/HtmlTocode", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use marutitecblic/HtmlTocode with Docker Model Runner:
docker model run hf.co/marutitecblic/HtmlTocode
Commit History
-
Upload custom_image_to_text_pipeline.py
Verified signaturec1393bf -
Update handler.py
Verified signature0fe8b25 -
Update handler.py
Verified signaturec419b31 -
Update handler.py
Verified signaturef96c4c7 -
Update handler.py
Verified signaturedab5fa7 -
Update handler.py
Verified signature7dc9973 -
Update handler.py
Verified signaturecf63769 -
Update handler.py
Verified signature45516de -
Update handler.py
Verified signaturef8f3df1 -
Upload handler.py
Verified signatureaa16163 -
Update config.json
Verified signature7eab698 -
Upload model-00004-of-00004.safetensors
Verified signatureae82b4d -
Upload model-00003-of-00004.safetensors
Verified signature884aa21 -
Upload model-00002-of-00004.safetensors
Verified signatureb5d4f5e -
Upload model-00001-of-00004.safetensors
Verified signatureeb41df9 -
Add LFS tracked files in new clone
cdf87b5 -
Upload tokenizer.model
Verified signaturefd8a22d
-
initial commit
Verified signature480a0f8