Text Generation
Transformers
Safetensors
mistral
lora
sft
trl
unsloth
conversational
text-generation-inference
Instructions to use mindfossil/telecom-intelligence-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mindfossil/telecom-intelligence-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mindfossil/telecom-intelligence-model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mindfossil/telecom-intelligence-model") model = AutoModelForCausalLM.from_pretrained("mindfossil/telecom-intelligence-model", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mindfossil/telecom-intelligence-model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mindfossil/telecom-intelligence-model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mindfossil/telecom-intelligence-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mindfossil/telecom-intelligence-model
- SGLang
How to use mindfossil/telecom-intelligence-model 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 "mindfossil/telecom-intelligence-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mindfossil/telecom-intelligence-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "mindfossil/telecom-intelligence-model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mindfossil/telecom-intelligence-model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use mindfossil/telecom-intelligence-model 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 mindfossil/telecom-intelligence-model 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 mindfossil/telecom-intelligence-model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mindfossil/telecom-intelligence-model to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="mindfossil/telecom-intelligence-model", max_seq_length=2048, ) - Docker Model Runner
How to use mindfossil/telecom-intelligence-model with Docker Model Runner:
docker model run hf.co/mindfossil/telecom-intelligence-model
File size: 2,830 Bytes
58c50d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 2.0,
"eval_steps": 500,
"global_step": 54,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"entropy": 1.180859375,
"epoch": 0.37037037037037035,
"grad_norm": 1.9087318181991577,
"learning_rate": 0.00019886154122075343,
"loss": 1.3855,
"mean_token_accuracy": 0.709491191804409,
"num_tokens": 20480.0,
"step": 10
},
{
"entropy": 0.77197265625,
"epoch": 0.7407407407407407,
"grad_norm": 1.5744595527648926,
"learning_rate": 0.00018990881137654258,
"loss": 0.8126,
"mean_token_accuracy": 0.8044520571827889,
"num_tokens": 40960.0,
"step": 20
},
{
"epoch": 1.0,
"eval_entropy": 0.666015625,
"eval_loss": 0.664973795413971,
"eval_mean_token_accuracy": 0.8258317112922668,
"eval_num_tokens": 55296.0,
"eval_runtime": 104.8748,
"eval_samples_per_second": 0.114,
"eval_steps_per_second": 0.019,
"step": 27
},
{
"entropy": 0.67705078125,
"epoch": 1.1111111111111112,
"grad_norm": 1.3851813077926636,
"learning_rate": 0.00017281409538757883,
"loss": 0.6667,
"mean_token_accuracy": 0.8270058631896973,
"num_tokens": 61440.0,
"step": 30
},
{
"entropy": 0.3906982421875,
"epoch": 1.4814814814814814,
"grad_norm": 1.8623592853546143,
"learning_rate": 0.00014912546110838775,
"loss": 0.3976,
"mean_token_accuracy": 0.8884540066123009,
"num_tokens": 81920.0,
"step": 40
},
{
"entropy": 0.4400634765625,
"epoch": 1.8518518518518519,
"grad_norm": 1.3342927694320679,
"learning_rate": 0.00012098811020648475,
"loss": 0.4118,
"mean_token_accuracy": 0.8866927579045296,
"num_tokens": 102400.0,
"step": 50
},
{
"epoch": 2.0,
"eval_entropy": 0.447265625,
"eval_loss": 0.594461977481842,
"eval_mean_token_accuracy": 0.8510273993015289,
"eval_num_tokens": 110592.0,
"eval_runtime": 158.7424,
"eval_samples_per_second": 0.076,
"eval_steps_per_second": 0.013,
"step": 54
}
],
"logging_steps": 10,
"max_steps": 108,
"num_input_tokens_seen": 0,
"num_train_epochs": 4,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 4748211470204928.0,
"train_batch_size": 1,
"trial_name": null,
"trial_params": null
}
|