Instructions to use eifirt/Lunkara with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eifirt/Lunkara with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="eifirt/Lunkara")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eifirt/Lunkara", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eifirt/Lunkara with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eifirt/Lunkara" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eifirt/Lunkara", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/eifirt/Lunkara
- SGLang
How to use eifirt/Lunkara 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 "eifirt/Lunkara" \ --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": "eifirt/Lunkara", "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 "eifirt/Lunkara" \ --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": "eifirt/Lunkara", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use eifirt/Lunkara with Docker Model Runner:
docker model run hf.co/eifirt/Lunkara
Update README.md
Browse filesapi.upload_folder(
folder_path=local_folder_path,
repo_id="eifirt/Lunkara",
repo_type="model",
ignore_patterns=["README.md"]
)
README.md
CHANGED
|
@@ -37,3 +37,9 @@ inputs = tokenizer("Hello, how are you?", return_tensors="pt")
|
|
| 37 |
outputs = model.generate(**inputs, max_new_tokens=50)
|
| 38 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 39 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
outputs = model.generate(**inputs, max_new_tokens=50)
|
| 38 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 39 |
```
|
| 40 |
+
api.upload_folder(
|
| 41 |
+
folder_path=local_folder_path,
|
| 42 |
+
repo_id="eifirt/Lunkara",
|
| 43 |
+
repo_type="model",
|
| 44 |
+
ignore_patterns=["README.md"]
|
| 45 |
+
)
|