Instructions to use askmyteapot/metharme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use askmyteapot/metharme with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="askmyteapot/metharme")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("askmyteapot/metharme") model = AutoModelForCausalLM.from_pretrained("askmyteapot/metharme") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use askmyteapot/metharme with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "askmyteapot/metharme" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "askmyteapot/metharme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/askmyteapot/metharme
- SGLang
How to use askmyteapot/metharme 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 "askmyteapot/metharme" \ --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": "askmyteapot/metharme", "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 "askmyteapot/metharme" \ --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": "askmyteapot/metharme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use askmyteapot/metharme with Docker Model Runner:
docker model run hf.co/askmyteapot/metharme
Upload folder using huggingface_hub
#2
by askmyteapot - opened
metharme-0.1percdamp-4bit-32g.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ab22b8ac59c44dff121b9d31f9e717564bd35f0b7a48208d2e76881b9c3f12e
|
| 3 |
+
size 4679070592
|
metharme-0.1percdamp-4bit.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a43a4c846295323108452e3faa4c6e478827e57d31665696e3111d7caaacb19
|
| 3 |
+
size 3774498820
|
metharme-10percdamp-4bit.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2673db15cc68c9a2ca9458b11a36ce0c2b7317c0ce9cad6b0f720ade2053b698
|
| 3 |
+
size 3774498820
|
metharme-1percdamp-4bit.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57adab14d76d13c668c10670d966edc43bd59e4307216fdcda15baa54ea39e14
|
| 3 |
+
size 3774498820
|