Instructions to use moneim/models-moved with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moneim/models-moved with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="moneim/models-moved")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("moneim/models-moved") model = AutoModelForCausalLM.from_pretrained("moneim/models-moved", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use moneim/models-moved with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "moneim/models-moved" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moneim/models-moved", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/moneim/models-moved
- SGLang
How to use moneim/models-moved 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 "moneim/models-moved" \ --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": "moneim/models-moved", "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 "moneim/models-moved" \ --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": "moneim/models-moved", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use moneim/models-moved with Docker Model Runner:
docker model run hf.co/moneim/models-moved
update model card README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,6 @@ tags:
|
|
| 5 |
model-index:
|
| 6 |
- name: models
|
| 7 |
results: []
|
| 8 |
-
library_name: peft
|
| 9 |
---
|
| 10 |
|
| 11 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -29,17 +28,6 @@ More information needed
|
|
| 29 |
|
| 30 |
## Training procedure
|
| 31 |
|
| 32 |
-
|
| 33 |
-
The following `bitsandbytes` quantization config was used during training:
|
| 34 |
-
- load_in_8bit: False
|
| 35 |
-
- load_in_4bit: True
|
| 36 |
-
- llm_int8_threshold: 6.0
|
| 37 |
-
- llm_int8_skip_modules: None
|
| 38 |
-
- llm_int8_enable_fp32_cpu_offload: False
|
| 39 |
-
- llm_int8_has_fp16_weight: False
|
| 40 |
-
- bnb_4bit_quant_type: nf4
|
| 41 |
-
- bnb_4bit_use_double_quant: False
|
| 42 |
-
- bnb_4bit_compute_dtype: float16
|
| 43 |
### Training hyperparameters
|
| 44 |
|
| 45 |
The following hyperparameters were used during training:
|
|
@@ -60,7 +48,6 @@ The following hyperparameters were used during training:
|
|
| 60 |
|
| 61 |
### Framework versions
|
| 62 |
|
| 63 |
-
- PEFT 0.4.0
|
| 64 |
- Transformers 4.31.0
|
| 65 |
- Pytorch 2.2.0+cu121
|
| 66 |
- Datasets 2.18.0
|
|
|
|
| 5 |
model-index:
|
| 6 |
- name: models
|
| 7 |
results: []
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 28 |
|
| 29 |
## Training procedure
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
### Training hyperparameters
|
| 32 |
|
| 33 |
The following hyperparameters were used during training:
|
|
|
|
| 48 |
|
| 49 |
### Framework versions
|
| 50 |
|
|
|
|
| 51 |
- Transformers 4.31.0
|
| 52 |
- Pytorch 2.2.0+cu121
|
| 53 |
- Datasets 2.18.0
|