Instructions to use rohithbojja/llama3.1-Intent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rohithbojja/llama3.1-Intent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rohithbojja/llama3.1-Intent")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rohithbojja/llama3.1-Intent") model = AutoModelForCausalLM.from_pretrained("rohithbojja/llama3.1-Intent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rohithbojja/llama3.1-Intent with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf rohithbojja/llama3.1-Intent:F16 # Run inference directly in the terminal: llama cli -hf rohithbojja/llama3.1-Intent:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rohithbojja/llama3.1-Intent:F16 # Run inference directly in the terminal: llama cli -hf rohithbojja/llama3.1-Intent:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf rohithbojja/llama3.1-Intent:F16 # Run inference directly in the terminal: ./llama-cli -hf rohithbojja/llama3.1-Intent:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf rohithbojja/llama3.1-Intent:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf rohithbojja/llama3.1-Intent:F16
Use Docker
docker model run hf.co/rohithbojja/llama3.1-Intent:F16
- LM Studio
- Jan
- vLLM
How to use rohithbojja/llama3.1-Intent with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rohithbojja/llama3.1-Intent" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rohithbojja/llama3.1-Intent", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rohithbojja/llama3.1-Intent:F16
- SGLang
How to use rohithbojja/llama3.1-Intent 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 "rohithbojja/llama3.1-Intent" \ --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": "rohithbojja/llama3.1-Intent", "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 "rohithbojja/llama3.1-Intent" \ --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": "rohithbojja/llama3.1-Intent", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use rohithbojja/llama3.1-Intent with Ollama:
ollama run hf.co/rohithbojja/llama3.1-Intent:F16
- Unsloth Studio
How to use rohithbojja/llama3.1-Intent with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rohithbojja/llama3.1-Intent to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for rohithbojja/llama3.1-Intent to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for rohithbojja/llama3.1-Intent to start chatting
- Docker Model Runner
How to use rohithbojja/llama3.1-Intent with Docker Model Runner:
docker model run hf.co/rohithbojja/llama3.1-Intent:F16
- Lemonade
How to use rohithbojja/llama3.1-Intent with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rohithbojja/llama3.1-Intent:F16
Run and chat with the model
lemonade run user.llama3.1-Intent-F16
List all available models
lemonade list
- Atomic Chat
RohithBojja commited on
Trained with Unsloth
Browse files- config.json +1 -1
- generation_config.json +6 -3
- pytorch_model-00001-of-00004.bin +1 -1
- pytorch_model-00002-of-00004.bin +2 -2
- pytorch_model-00003-of-00004.bin +1 -1
- pytorch_model-00004-of-00004.bin +1 -1
config.json
CHANGED
|
@@ -30,7 +30,7 @@
|
|
| 30 |
"rope_theta": 500000.0,
|
| 31 |
"tie_word_embeddings": false,
|
| 32 |
"torch_dtype": "float16",
|
| 33 |
-
"transformers_version": "4.43.
|
| 34 |
"unsloth_version": "2024.8",
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 128256
|
|
|
|
| 30 |
"rope_theta": 500000.0,
|
| 31 |
"tie_word_embeddings": false,
|
| 32 |
"torch_dtype": "float16",
|
| 33 |
+
"transformers_version": "4.43.3",
|
| 34 |
"unsloth_version": "2024.8",
|
| 35 |
"use_cache": true,
|
| 36 |
"vocab_size": 128256
|
generation_config.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
"bos_token_id": 128000,
|
| 4 |
"do_sample": true,
|
| 5 |
-
"eos_token_id":
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"temperature": 0.6,
|
| 7 |
"top_p": 0.9,
|
| 8 |
-
"transformers_version": "4.43.
|
| 9 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"bos_token_id": 128000,
|
| 3 |
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
128001,
|
| 6 |
+
128008,
|
| 7 |
+
128009
|
| 8 |
+
],
|
| 9 |
"temperature": 0.6,
|
| 10 |
"top_p": 0.9,
|
| 11 |
+
"transformers_version": "4.43.3"
|
| 12 |
}
|
pytorch_model-00001-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4976718466
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fcd1090b45684d274a892a3176f79680f4fc2fdd27c26d9ed2cf49a8e5d8c95
|
| 3 |
size 4976718466
|
pytorch_model-00002-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6011fa0d7a1829d45019885f62f8d38fc5977f24e299ef00e11fdd76faac0cd
|
| 3 |
+
size 4999826950
|
pytorch_model-00003-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915939082
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ca5c03320822748f32bb6c5f8c056c6e2d49c48e79c894930e8aa3989b684042
|
| 3 |
size 4915939082
|
pytorch_model-00004-of-00004.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1168140873
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45cc58d4b942615024836095680468d912154180502199915aeacc2a9fd70dc1
|
| 3 |
size 1168140873
|