Text Generation
Transformers
Safetensors
llama
llama-factory
full
diffusion
text-generation-inference
Instructions to use diffusionfamily/diffullama with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use diffusionfamily/diffullama with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="diffusionfamily/diffullama")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("diffusionfamily/diffullama") model = AutoModelForCausalLM.from_pretrained("diffusionfamily/diffullama") - Inference
- Local Apps Settings
- vLLM
How to use diffusionfamily/diffullama with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "diffusionfamily/diffullama" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "diffusionfamily/diffullama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/diffusionfamily/diffullama
- SGLang
How to use diffusionfamily/diffullama 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 "diffusionfamily/diffullama" \ --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": "diffusionfamily/diffullama", "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 "diffusionfamily/diffullama" \ --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": "diffusionfamily/diffullama", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use diffusionfamily/diffullama with Docker Model Runner:
docker model run hf.co/diffusionfamily/diffullama
update readme
Browse files
README.md
CHANGED
|
@@ -1,13 +1,18 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
base_model:
|
|
|
|
| 4 |
tags:
|
| 5 |
- llama-factory
|
| 6 |
- full
|
| 7 |
-
-
|
| 8 |
model-index:
|
| 9 |
- name: diffullama
|
| 10 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -15,36 +20,16 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# diffullama
|
| 17 |
|
| 18 |
-
This model is a fine-tuned version of [
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
## Intended uses & limitations
|
| 25 |
-
|
| 26 |
-
More information needed
|
| 27 |
-
|
| 28 |
-
## Training and evaluation data
|
| 29 |
-
|
| 30 |
-
More information needed
|
| 31 |
-
|
| 32 |
-
## Training procedure
|
| 33 |
-
|
| 34 |
-
### Training hyperparameters
|
| 35 |
-
|
| 36 |
-
The following hyperparameters were used during training:
|
| 37 |
-
- learning_rate: 5e-05
|
| 38 |
-
- train_batch_size: 8
|
| 39 |
-
- eval_batch_size: 8
|
| 40 |
-
- seed: 42
|
| 41 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
-
- lr_scheduler_type: linear
|
| 43 |
-
- num_epochs: 3.0
|
| 44 |
|
| 45 |
### Framework versions
|
| 46 |
|
| 47 |
- Transformers 4.44.2
|
| 48 |
- Pytorch 2.1.1+cu121
|
| 49 |
- Datasets 2.21.0
|
| 50 |
-
- Tokenizers 0.19.1
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
base_model:
|
| 4 |
+
- meta-llama/Llama-2-7b-hf
|
| 5 |
tags:
|
| 6 |
- llama-factory
|
| 7 |
- full
|
| 8 |
+
- diffusion
|
| 9 |
model-index:
|
| 10 |
- name: diffullama
|
| 11 |
results: []
|
| 12 |
+
license: mit
|
| 13 |
+
datasets:
|
| 14 |
+
- bigcode/starcoderdata
|
| 15 |
+
- cerebras/SlimPajama-627B
|
| 16 |
---
|
| 17 |
|
| 18 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 20 |
|
| 21 |
# diffullama
|
| 22 |
|
| 23 |
+
This model is a fine-tuned version of [llama2].
|
| 24 |
|
| 25 |
## Model description
|
| 26 |
|
| 27 |
+
Details and model loading can be seen [https://github.com/HKUNLP/DiffuLLaMA](https://github.com/HKUNLP/DiffuLLaMA).
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
### Framework versions
|
| 31 |
|
| 32 |
- Transformers 4.44.2
|
| 33 |
- Pytorch 2.1.1+cu121
|
| 34 |
- Datasets 2.21.0
|
| 35 |
+
- Tokenizers 0.19.1
|