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
moneim/fine-tuned
Browse files- README.md +13 -0
- adapter_model.bin +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -5,6 +5,7 @@ tags:
|
|
| 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,6 +29,17 @@ More information needed
|
|
| 28 |
|
| 29 |
## Training procedure
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
### Training hyperparameters
|
| 32 |
|
| 33 |
The following hyperparameters were used during training:
|
|
@@ -48,6 +60,7 @@ 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
|
|
|
|
| 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 |
|
| 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 |
|
| 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
|
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 104915722
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75e2b563dc8d975726d816211cbd339799530f463165b155480c166c7dd64970
|
| 3 |
size 104915722
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4408
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f7cb7c7075d231f31f99ee6f98e03e86f99f0fd56a20cf948896f2effc4660a
|
| 3 |
size 4408
|