Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Instructions to use DorinSht/recreate_llama_68M_vanilla with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DorinSht/recreate_llama_68M_vanilla with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DorinSht/recreate_llama_68M_vanilla")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DorinSht/recreate_llama_68M_vanilla") model = AutoModelForCausalLM.from_pretrained("DorinSht/recreate_llama_68M_vanilla") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DorinSht/recreate_llama_68M_vanilla with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DorinSht/recreate_llama_68M_vanilla" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DorinSht/recreate_llama_68M_vanilla", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DorinSht/recreate_llama_68M_vanilla
- SGLang
How to use DorinSht/recreate_llama_68M_vanilla 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 "DorinSht/recreate_llama_68M_vanilla" \ --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": "DorinSht/recreate_llama_68M_vanilla", "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 "DorinSht/recreate_llama_68M_vanilla" \ --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": "DorinSht/recreate_llama_68M_vanilla", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DorinSht/recreate_llama_68M_vanilla with Docker Model Runner:
docker model run hf.co/DorinSht/recreate_llama_68M_vanilla
recreate_llama_68M_vanilla
This model is a fine-tuned version of JackFram/llama-68m on the anon8231489123/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json dataset. It achieves the following results on the evaluation set:
- Loss: 2.3558
- Accuracy: 0.5820
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0001
- train_batch_size: 24
- eval_batch_size: 48
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.05
- num_epochs: 3.0
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 3.406 | 0.2644 | 1000 | 3.2345 | 0.5035 |
| 2.8119 | 0.5288 | 2000 | 2.8216 | 0.5365 |
| 2.6076 | 0.7932 | 3000 | 2.6553 | 0.5501 |
| 2.4729 | 1.0576 | 4000 | 2.5761 | 0.5581 |
| 2.4323 | 1.3221 | 5000 | 2.5363 | 0.5617 |
| 2.3824 | 1.5865 | 6000 | 2.4913 | 0.5660 |
| 2.3719 | 1.8509 | 7000 | 2.4664 | 0.5686 |
| 2.3021 | 2.1153 | 8000 | 2.4404 | 0.5716 |
| 2.2848 | 2.3797 | 9000 | 2.4080 | 0.5755 |
| 2.2653 | 2.6441 | 10000 | 2.3834 | 0.5785 |
| 2.2447 | 2.9085 | 11000 | 2.3603 | 0.5811 |
Framework versions
- Transformers 4.41.0.dev0
- Pytorch 2.1.0+cu121
- Datasets 2.19.1
- Tokenizers 0.19.1
- Downloads last month
- 3
Model tree for DorinSht/recreate_llama_68M_vanilla
Base model
JackFram/llama-68m