- Εισαγωγή στο Apple MLX
- Βασικά Χαρακτηριστικά για Ανάπτυξη LLM
- Οδηγός Εγκατάστασης
- Ξεκινώντας με το MLX
- MLX-LM: Γλωσσικά Μοντέλα
- Εργασία με Μεγάλα Γλωσσικά Μοντέλα
- Ενσωμάτωση Hugging Face
- Μετατροπή και Ποσοτικοποίηση Μοντέλων
- Fine-tuning Γλωσσικών Μοντέλων
- Προηγμένα Χαρακτηριστικά LLM
- Βέλτιστες Πρακτικές για LLMs
- Αντιμετώπιση Προβλημάτων
- Επιπλέον Πόροι
Το Apple MLX είναι ένα framework που έχει σχεδιαστεί ειδικά για αποδοτική και ευέλικτη μηχανική μάθηση σε Apple Silicon, αναπτυγμένο από την Apple Machine Learning Research. Κυκλοφόρησε τον Δεκέμβριο του 2023 και αποτελεί την απάντηση της Apple σε frameworks όπως το PyTorch και το TensorFlow, με ιδιαίτερη έμφαση στις δυνατότητες μεγάλων γλωσσικών μοντέλων σε υπολογιστές Mac.
Το MLX αξιοποιεί πλήρως την ενοποιημένη αρχιτεκτονική μνήμης του Apple Silicon, καθιστώντας το ιδανικό για την εκτέλεση και το fine-tuning μεγάλων γλωσσικών μοντέλων τοπικά σε υπολογιστές Mac. Το framework εξαλείφει πολλά από τα προβλήματα συμβατότητας που αντιμετώπιζαν παραδοσιακά οι χρήστες Mac όταν εργάζονταν με LLMs.
- Χρήστες Mac που θέλουν να εκτελούν LLMs τοπικά χωρίς εξάρτηση από το cloud
- Ερευνητές που πειραματίζονται με fine-tuning και προσαρμογή γλωσσικών μοντέλων
- Προγραμματιστές που δημιουργούν εφαρμογές AI με δυνατότητες γλωσσικών μοντέλων
- Οποιοσδήποτε θέλει να αξιοποιήσει το Apple Silicon για δημιουργία κειμένου, συνομιλία και γλωσσικές εργασίες
Η ενοποιημένη μνήμη του Apple Silicon επιτρέπει στο MLX να διαχειρίζεται αποδοτικά μεγάλα γλωσσικά μοντέλα χωρίς την επιβάρυνση αντιγραφής μνήμης που είναι συνηθισμένη σε άλλα frameworks. Αυτό σημαίνει ότι μπορείτε να εργαστείτε με μεγαλύτερα μοντέλα στο ίδιο υλικό.
Το MLX έχει σχεδιαστεί από την αρχή για τα τσιπ της σειράς M της Apple, προσφέροντας βέλτιστη απόδοση για αρχιτεκτονικές μετασχηματιστών που χρησιμοποιούνται συνήθως σε γλωσσικά μοντέλα.
Η ενσωματωμένη υποστήριξη για ποσοτικοποίηση 4-bit και 8-bit μειώνει τις απαιτήσεις μνήμης διατηρώντας την ποιότητα του μοντέλου, επιτρέποντας την εκτέλεση μεγαλύτερων μοντέλων σε καταναλωτικό υλικό.
Η απρόσκοπτη ενσωμάτωση με το οικοσύστημα Hugging Face παρέχει πρόσβαση σε χιλιάδες προεκπαιδευμένα γλωσσικά μοντέλα με απλά εργαλεία μετατροπής.
Η υποστήριξη για Low-Rank Adaptation (LoRA) επιτρέπει αποδοτικό fine-tuning μεγάλων μοντέλων με ελάχιστους υπολογιστικούς πόρους.
- macOS 13.0+ (για βελτιστοποίηση Apple Silicon)
- Python 3.8+
- Apple Silicon (σειρά M1, M2, M3, M4)
- Ναative ARM περιβάλλον (όχι υπό Rosetta)
- 8GB+ RAM (συνιστάται 16GB+ για μεγαλύτερα μοντέλα)
Ο πιο εύκολος τρόπος για να ξεκινήσετε με γλωσσικά μοντέλα είναι να εγκαταστήσετε το MLX-LM:
pip install mlx-lmΑυτή η εντολή εγκαθιστά τόσο το βασικό framework MLX όσο και τα εργαλεία γλωσσικών μοντέλων.
# Create and activate virtual environment
python -m venv mlx-llm-env
source mlx-llm-env/bin/activate
# Install MLX-LM
pip install mlx-lm
# Verify installation
python -c "from mlx_lm import load; print('MLX-LM installed successfully')"Αν σκοπεύετε να εργαστείτε με μοντέλα ομιλίας όπως το Whisper:
pip install mlx-lm[whisper]
# or
pip install mlx-lm ffmpeg-pythonΑς ξεκινήσουμε με ένα απλό παράδειγμα δημιουργίας κειμένου:
# Quick text generation from command line
python -m mlx_lm.generate --model mlx-community/Mistral-7B-Instruct-v0.3-4bit --prompt "Explain artificial intelligence in simple terms:"from mlx_lm import load, generate
# Load a quantized model (uses less memory)
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# Generate text
prompt = "Write a short story about a robot learning to understand emotions:"
response = generate(
model,
tokenizer,
prompt=prompt,
verbose=True,
max_tokens=300,
temp=0.7
)
print(response)from mlx_lm import load
# Different ways to load models
model, tokenizer = load("mistralai/Mistral-7B-Instruct-v0.2") # Full precision
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit") # Quantized
# Load with custom settings
model, tokenizer = load(
"qwen/Qwen-7B-Chat",
tokenizer_config={
"eos_token": "<|endoftext|>",
"trust_remote_code": True
}
)Το MLX-LM υποστηρίζει μια ευρεία γκάμα δημοφιλών αρχιτεκτονικών γλωσσικών μοντέλων:
- LLaMA και LLaMA 2 - Τα βασικά μοντέλα της Meta
- Mistral και Mixtral - Αποδοτικά και ισχυρά μοντέλα
- Phi-3 - Συμπαγή γλωσσικά μοντέλα της Microsoft
- Qwen - Πολυγλωσσικά μοντέλα της Alibaba
- Code Llama - Εξειδικευμένα για δημιουργία κώδικα
- Gemma - Ανοιχτά γλωσσικά μοντέλα της Google
Η γραμμή εντολών του MLX-LM παρέχει ισχυρά εργαλεία για εργασία με γλωσσικά μοντέλα:
# Basic text generation
python -m mlx_lm.generate --model mistralai/Mistral-7B-Instruct-v0.2 --prompt "Hello, how are you?"
# Generate with specific parameters
python -m mlx_lm.generate \
--model mlx-community/CodeLlama-7b-Instruct-hf-4bit \
--prompt "Write a Python function to calculate fibonacci numbers:" \
--max-tokens 500 \
--temp 0.3
# Interactive chat mode
python -m mlx_lm.generate --model mistralai/Mistral-7B-Instruct-v0.2 --prompt "You are a helpful assistant." --max-tokens 100
# Get help for all options
python -m mlx_lm.generate --helpfrom mlx_lm import load, generate
# Load model once for multiple generations
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# Single prompt generation
def generate_response(prompt, max_tokens=200, temperature=0.7):
return generate(
model,
tokenizer,
prompt=prompt,
max_tokens=max_tokens,
temp=temperature,
verbose=True
)
# Batch generation
prompts = [
"Explain quantum computing:",
"Write a haiku about technology:",
"What are the benefits of renewable energy?"
]
responses = [generate_response(prompt) for prompt in prompts]from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
prompt = "Summarize the key principles of sustainable development:"
response = generate(model, tokenizer, prompt=prompt, max_tokens=300)# Format prompts for instruction-following models
instruction_prompt = """<s>[INST] You are a helpful coding assistant.
Write a Python function that takes a list of numbers and returns the median value.
Include comments explaining your code. [/INST]"""
response = generate(model, tokenizer, prompt=instruction_prompt, max_tokens=400)creative_prompt = """Write a creative story beginning with:
"The last library on Earth had been closed for fifty years when Sarah discovered the hidden door..."
Continue the story for about 200 words."""
story = generate(
model,
tokenizer,
prompt=creative_prompt,
max_tokens=250,
temp=0.8 # Higher temperature for more creativity
)from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# Conversation history management
class Conversation:
def __init__(self, model, tokenizer):
self.model = model
self.tokenizer = tokenizer
self.history = []
def add_message(self, role, content):
self.history.append({"role": role, "content": content})
def generate_response(self, user_input):
self.add_message("user", user_input)
# Format conversation for the model
conversation_text = self.format_conversation()
response = generate(
self.model,
self.tokenizer,
prompt=conversation_text,
max_tokens=300,
temp=0.7
)
self.add_message("assistant", response)
return response
def format_conversation(self):
formatted = ""
for message in self.history:
if message["role"] == "user":
formatted += f"[INST] {message['content']} [/INST]"
else:
formatted += f" {message['content']} "
return formatted
# Usage
chat = Conversation(model, tokenizer)
response1 = chat.generate_response("What is machine learning?")
response2 = chat.generate_response("Can you give me a practical example?")Το MLX λειτουργεί απρόσκοπτα με το οικοσύστημα Hugging Face:
- Περιήγηση σε μοντέλα MLX: https://huggingface.co/models?library=mlx&sort=trending
- Κοινότητα MLX: https://huggingface.co/mlx-community (προ-μετατρεπόμενα μοντέλα)
- Αρχικά μοντέλα: Τα περισσότερα LLaMA, Mistral, Phi και Qwen μοντέλα λειτουργούν με μετατροπή
from mlx_lm import load
# Load pre-converted MLX models (recommended)
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
model, tokenizer = load("mlx-community/CodeLlama-7b-Instruct-hf-4bit")
model, tokenizer = load("mlx-community/Phi-3-mini-4k-instruct-4bit")
# Load original Hugging Face models (will be converted automatically)
model, tokenizer = load("mistralai/Mistral-7B-Instruct-v0.2")
model, tokenizer = load("microsoft/Phi-3-mini-4k-instruct")# Install Hugging Face CLI
pip install huggingface_hub
# Download a model for offline use
huggingface-cli download mlx-community/Mistral-7B-Instruct-v0.3-4bit --local-dir ./models/mistral-7b
# Use the downloaded model
python -m mlx_lm.generate --model ./models/mistral-7b --prompt "Hello world"# Basic conversion
python -m mlx_lm.convert --hf-path mistralai/Mistral-7B-Instruct-v0.2
# Convert with quantization (recommended for memory efficiency)
python -m mlx_lm.convert --hf-path mistralai/Mistral-7B-Instruct-v0.2 -q
# Convert and upload to Hugging Face Hub
python -m mlx_lm.convert \
--hf-path microsoft/Phi-3-mini-4k-instruct \
-q \
--upload-repo your-username/phi-3-mini-4k-instruct-mlxΗ ποσοτικοποίηση μειώνει το μέγεθος του μοντέλου και τη χρήση μνήμης με ελάχιστη απώλεια ποιότητας:
# Comparison of model sizes and memory usage
# Original model (float32): ~14GB for 7B parameters
model, tokenizer = load("mistralai/Mistral-7B-Instruct-v0.2")
# 4-bit quantized: ~4GB for 7B parameters
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# 8-bit quantized: ~7GB for 7B parameters (better quality than 4-bit)
# python -m mlx_lm.convert --hf-path model_name --quantize-bits 8# Different quantization options
python -m mlx_lm.convert --hf-path mistralai/Mistral-7B-v0.1 --quantize-bits 4
python -m mlx_lm.convert --hf-path mistralai/Mistral-7B-v0.1 --quantize-bits 8
# Group size quantization (more precise)
python -m mlx_lm.convert --hf-path mistralai/Mistral-7B-v0.1 -q --q-group-size 64Το MLX υποστηρίζει αποδοτικό fine-tuning χρησιμοποιώντας LoRA, που σας επιτρέπει να προσαρμόσετε μεγάλα μοντέλα με ελάχιστους υπολογιστικούς πόρους:
# Basic LoRA fine-tuning setup
from mlx_lm import load
from mlx_lm.utils import load_dataset
# Load base model
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# Prepare your dataset (JSON format)
# Each entry should have 'text' field with your training examples
dataset_path = "your_training_data.json"Δημιουργήστε ένα αρχείο JSON με τα παραδείγματα εκπαίδευσης σας:
[
{
"text": "[INST] What is the capital of France? [/INST] The capital of France is Paris."
},
{
"text": "[INST] Explain photosynthesis briefly. [/INST] Photosynthesis is the process by which plants convert sunlight, carbon dioxide, and water into glucose and oxygen."
}
]# Fine-tune with LoRA
python -m mlx_lm.lora \
--model mlx-community/Mistral-7B-Instruct-v0.3-4bit \
--train \
--data your_training_data.json \
--lora-layers 16 \
--batch-size 4 \
--learning-rate 1e-5 \
--steps 1000 \
--save-every 100 \
--adapter-path ./fine_tuned_modelfrom mlx_lm import load
# Load base model with fine-tuned adapter
model, tokenizer = load(
"mlx-community/Mistral-7B-Instruct-v0.3-4bit",
adapter_path="./fine_tuned_model"
)
# Generate with your fine-tuned model
response = generate(model, tokenizer, prompt="Your custom prompt", max_tokens=200)Για επαναλαμβανόμενη χρήση του ίδιου πλαισίου, το MLX υποστηρίζει cache προτροπών για βελτίωση της απόδοσης:
# Generate and cache a system prompt
python -m mlx_lm.generate \
--model mlx-community/Mistral-7B-Instruct-v0.3-4bit \
--prompt "You are a helpful coding assistant. You provide clean, well-commented code solutions." \
--save-prompt-cache coding_assistant.safetensors
# Use cached prompt with new queries
python -m mlx_lm.generate \
--prompt-cache-file coding_assistant.safetensors \
--prompt "Write a Python function to sort a list of dictionaries by a specific key."from mlx_lm import load, stream_generate
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
prompt = "Write a detailed explanation of renewable energy sources:"
# Stream tokens as they're generated
for token in stream_generate(model, tokenizer, prompt, max_tokens=500):
print(token, end='', flush=True)from mlx_lm import load, generate
# Load a code-specialized model
model, tokenizer = load("mlx-community/CodeLlama-7b-Instruct-hf-4bit")
# Code generation prompt
code_prompt = """Write a Python class that implements a simple cache with the following features:
- Get and set methods
- Maximum size limit
- LRU (Least Recently Used) eviction policy
Include proper documentation and error handling."""
code_response = generate(
model,
tokenizer,
prompt=code_prompt,
max_tokens=800,
temp=0.3 # Lower temperature for more precise code
)
print(code_response)from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit")
# Proper chat formatting for Mistral models
def format_chat_prompt(messages):
formatted_prompt = ""
for message in messages:
if message["role"] == "user":
formatted_prompt += f"[INST] {message['content']} [/INST]"
elif message["role"] == "assistant":
formatted_prompt += f" {message['content']} "
return formatted_prompt
# Multi-turn conversation
messages = [
{"role": "user", "content": "What are the main components of a computer?"},
{"role": "assistant", "content": "The main components of a computer include the CPU, RAM, storage, motherboard, and power supply."},
{"role": "user", "content": "Can you explain what RAM does in more detail?"}
]
chat_prompt = format_chat_prompt(messages)
response = generate(model, tokenizer, prompt=chat_prompt, max_tokens=300)import psutil
def check_memory_usage():
memory = psutil.virtual_memory()
print(f"Memory usage: {memory.percent}%")
print(f"Available memory: {memory.available / (1024**3):.2f} GB")
# Check memory before loading large models
check_memory_usage()
# Use quantized models for better memory efficiency
model, tokenizer = load("mlx-community/Mistral-7B-Instruct-v0.3-4bit") # ~4GB
# vs
# model, tokenizer = load("mistralai/Mistral-7B-Instruct-v0.2") # ~14GBΓια Πειραματισμό και Μάθηση:
- Χρησιμοποιήστε μοντέλα ποσοτικοποιημένα σε 4-bit (π.χ.,
mlx-community/Mistral-7B-Instruct-v0.3-4bit) - Ξεκινήστε με μικρότερα μοντέλα όπως το Phi-3-mini
Για Εφαρμογές Παραγωγής:
- Εξετάστε την ισορροπία μεταξύ μεγέθους μοντέλου και ποιότητας
- Δοκιμάστε τόσο ποσοτικοποιημένα όσο και πλήρους ακρίβειας μοντέλα
- Κάντε δοκιμές στις συγκεκριμένες περιπτώσεις χρήσης σας
Για Συγκεκριμένες Εργασίες:
- Δημιουργία Κώδικα: CodeLlama, Code Llama Instruct
- Γενική Συνομιλία: Mistral-7B-Instruct, Phi-3
- Πολυγλωσσικά: Μοντέλα Qwen
- Δημιουργική Γραφή: Υψηλότερες ρυθμίσεις θερμοκρασίας με Mistral ή LLaMA
# Good prompt structure for instruction-following models
def create_instruction_prompt(instruction, context="", examples=""):
prompt = f"[INST] "
if context:
prompt += f"Context: {context}\n\n"
if examples:
prompt += f"Examples:\n{examples}\n\n"
prompt += f"Instruction: {instruction} [/INST]"
return prompt
# Example usage
prompt = create_instruction_prompt(
instruction="Summarize the following text in 2-3 sentences:",
context="You are a helpful assistant that provides concise summaries.",
examples="Text: 'Long article...' Summary: 'Brief summary...'"
)# Optimize generation parameters based on use case
def optimize_for_use_case(use_case):
params = {
"max_tokens": 200,
"temp": 0.7,
"top_p": 0.9
}
if use_case == "code_generation":
params.update({"temp": 0.3, "max_tokens": 500})
elif use_case == "creative_writing":
params.update({"temp": 0.9, "max_tokens": 800})
elif use_case == "factual_qa":
params.update({"temp": 0.3, "max_tokens": 150})
elif use_case == "summarization":
params.update({"temp": 0.5, "max_tokens": 300})
return params
# Usage
code_params = optimize_for_use_case("code_generation")
response = generate(model, tokenizer, prompt=prompt, **code_params)Πρόβλημα: "No matching distribution found for mlx-lm"
# Check Python architecture
python -c "import platform; print(platform.processor())"
# Should output 'arm', not 'i386'
# If output is 'i386', you're using x86 Python under Rosetta
# Install native ARM Python or use CondaΛύση: Χρησιμοποιήστε native ARM Python ή Miniconda:
# Install Miniconda for ARM64
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash Miniconda3-latest-MacOSX-arm64.sh
# Create new environment
conda create -n mlx python=3.11
conda activate mlx
pip install mlx-lmΠρόβλημα: "RuntimeError: Out of memory"
# Use smaller or quantized models
model, tokenizer = load("mlx-community/Phi-3-mini-4k-instruct-4bit") # ~2GB
# instead of
# model, tokenizer = load("mistralai/Mistral-7B-Instruct-v0.2") # ~14GB
# For macOS 15+, increase wired memory limit
# sudo sysctl iogpu.wired_limit_mb=8192 # Adjust based on your RAMΠρόβλημα: Το μοντέλο αποτυγχάνει να φορτώσει ή παράγει κακή έξοδο
# Verify model integrity
from mlx_lm import load
try:
model, tokenizer = load("model_name")
print("Model loaded successfully")
except Exception as e:
print(f"Error loading model: {e}")
# Test with a simple prompt
test_response = generate(model, tokenizer, prompt="Hello", max_tokens=10)
print(f"Test response: {test_response}")Πρόβλημα: Αργή ταχύτητα δημιουργίας
- Κλείστε άλλες εφαρμογές που καταναλώνουν μνήμη
- Χρησιμοποιήστε ποσοτικοποιημένα μοντέλα όπου είναι δυνατόν
- Βεβαιωθείτε ότι δεν εκτελείτε υπό Rosetta
- Ελέγξτε τη διαθέσιμη μνήμη πριν φορτώσετε μοντέλα
# Enable verbose output for debugging
response = generate(
model,
tokenizer,
prompt="Test prompt",
verbose=True, # Shows generation progress
max_tokens=50
)
# Monitor system resources
import psutil
import time
def monitor_generation():
start_time = time.time()
start_memory = psutil.virtual_memory().percent
response = generate(model, tokenizer, prompt="Long prompt...", max_tokens=200)
end_time = time.time()
end_memory = psutil.virtual_memory().percent
print(f"Generation time: {end_time - start_time:.2f} seconds")
print(f"Memory change: {end_memory - start_memory:.1f}%")
return response- Αποθετήριο MLX στο GitHub: https://github.com/ml-explore/mlx
- Παραδείγματα MLX-LM: https://github.com/ml-explore/mlx-examples/tree/main/llms
- Τεκμηρίωση MLX: https://ml-explore.github.io/mlx/
- Ενσωμάτωση Hugging Face MLX: https://huggingface.co/docs/hub/en/mlx
- Μοντέλα Κοινότητας MLX: https://huggingface.co/mlx-community
- Δημοφιλή Μοντέλα MLX: https://huggingface.co/models?library=mlx&sort=trending
- Προσωπικός Βοηθός AI: Δημιουργήστε ένα τοπικό chatbot με μνήμη συνομιλίας
- Βοηθός Κώδικα: Δημιουργήστε έναν βοηθό προγραμματισμού για τη ροή εργασίας σας
- Γεννήτρια Περιεχομένου: Αναπτύξτε εργαλεία για γραφή, περίληψη και δημιουργία περιεχομένου
- Προσαρμοσμένα Fine-tuned Μοντέλα: Προσαρμόστε μοντέλα για εργασίες συγκεκριμένου τομέα
- Εφαρμογές Πολλαπλών Τρόπων: Συνδυάστε τη δημιουργία κειμένου με άλλες δυνατότητες του MLX
- Συζητήσεις Κοινότητας MLX: Θέματα και Συζητήσεις στο GitHub
- Φόρουμ Hugging Face: Υποστήριξη κοινότητας και κοινή χρήση μοντέλων
- Τεκμηρίωση Apple Developer: Επίσημοι πόροι ML της Apple
Αν χρησιμοποιήσετε το MLX στην έρευνά σας, παρακαλούμε να αναφέρετε:
@software{mlx2023,
author = {Awni Hannun and Jagrit Digani and Angelos Katharopoulos and Ronan Collobert},
title = {{MLX}: Efficient and flexible machine learning on Apple silicon},
url = {https://github.com/ml-explore},
version = {0.26.5},
year = {2023},
}Το Apple MLX έχει φέρει επανάσταση στο τοπίο της εκτέλεσης μεγάλων γλωσσικών μοντέλων σε υπολογιστές Mac. Με την παροχή βελτιστοποίησης για Apple Silicon, απρόσκοπτη ενσωμάτωση με το Hugging Face και ισχυρά χαρακτηριστικά όπως η ποσοτικοποίηση και το fine-tuning με LoRA, το MLX καθιστά δυνατή την τοπική εκτέλεση εξελιγμένων γλωσσικών μοντέλων με εξαιρετική απόδοση.
Είτε δημιουργείτε chatbots, βοηθούς κώδικα, γεννήτριες περιεχομένου ή προσαρμοσμένα fine-tuned μοντέλα, το MLX παρέχει τα εργαλεία και την απόδοση που χρειάζεστε για να αξιοποιήσετε πλήρως το Apple Silicon Mac σας για εφαρμογές γλωσσικών μοντέλων. Η εστίαση του framework στην αποδοτικότητα και την ευκολία χρήσης το καθιστά εξαιρετική επιλογή τόσο για έρευνα όσο και για εφαρμογές παραγωγής.
Ξεκινήστε με τα βασικά παραδείγματα αυτού του οδηγού, εξερευνήστε το πλούσιο οικοσύστημα προ-μετατρεπόμενων μοντέλων στο Hugging Face και προχωρήστε σταδιακά σε πιο προηγμένα χαρακτηριστικά όπως το fine-tuning και η ανάπτυξη προσαρμοσμένων μοντέλων. Καθώς το οικοσύστημα MLX συνεχίζει να αναπτύσσεται, γίνεται μια ολοένα και πιο ισχυρή πλατφόρμα για ανάπτυξη γλωσσικών μοντέλων σε υλικό της Apple.
Αποποίηση ευθύνης:
Αυτό το έγγραφο έχει μεταφραστεί χρησιμοποιώντας την υπηρεσία αυτόματης μετάφρασης Co-op Translator. Παρόλο που καταβάλλουμε προσπάθειες για ακρίβεια, παρακαλούμε να έχετε υπόψη ότι οι αυτοματοποιημένες μεταφράσεις ενδέχεται να περιέχουν λάθη ή ανακρίβειες. Το πρωτότυπο έγγραφο στη μητρική του γλώσσα θα πρέπει να θεωρείται η αυθεντική πηγή. Για κρίσιμες πληροφορίες, συνιστάται επαγγελματική ανθρώπινη μετάφραση. Δεν φέρουμε ευθύνη για τυχόν παρεξηγήσεις ή εσφαλμένες ερμηνείες που προκύπτουν από τη χρήση αυτής της μετάφρασης.