Text Generation
Transformers
Safetensors
llama
story generation
AI creativity
NLP
prompt-based storytelling
text-generation-inference
Instructions to use shrujan142/LoomAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shrujan142/LoomAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shrujan142/LoomAI")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shrujan142/LoomAI") model = AutoModelForCausalLM.from_pretrained("shrujan142/LoomAI") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shrujan142/LoomAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shrujan142/LoomAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shrujan142/LoomAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/shrujan142/LoomAI
- SGLang
How to use shrujan142/LoomAI 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 "shrujan142/LoomAI" \ --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": "shrujan142/LoomAI", "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 "shrujan142/LoomAI" \ --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": "shrujan142/LoomAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use shrujan142/LoomAI with Docker Model Runner:
docker model run hf.co/shrujan142/LoomAI
Update README.md
Browse files
README.md
CHANGED
|
@@ -50,7 +50,7 @@ The model may generate biased or inappropriate content, as it relies on data tha
|
|
| 50 |
|
| 51 |
- Implement content filters to manage the generation of inappropriate material.
|
| 52 |
- Encourage user supervision to ensure content aligns with intended use.
|
| 53 |
-
|
| 54 |
<!-- ## How to Get Started with the Model
|
| 55 |
|
| 56 |
Use the code below to get started with the model.
|
|
@@ -80,7 +80,7 @@ The model was fine-tuned on a dataset curated for storytelling, including a vari
|
|
| 80 |
|
| 81 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 82 |
|
| 83 |
-
[More Information Needed]
|
| 84 |
|
| 85 |
## Evaluation
|
| 86 |
|
|
|
|
| 50 |
|
| 51 |
- Implement content filters to manage the generation of inappropriate material.
|
| 52 |
- Encourage user supervision to ensure content aligns with intended use.
|
| 53 |
+
|
| 54 |
<!-- ## How to Get Started with the Model
|
| 55 |
|
| 56 |
Use the code below to get started with the model.
|
|
|
|
| 80 |
|
| 81 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 82 |
|
| 83 |
+
<!-- [More Information Needed] -->
|
| 84 |
|
| 85 |
## Evaluation
|
| 86 |
|