- basic examples - polynomials,
$\mathbb{R}^n$ et c - basis
- independence
- row space, column space
| class MultiFileSummary(dspy.Signature): | |
| context = dspy.InputField(desc="Python code") | |
| question = dspy.InputField() | |
| answer = dspy.OutputField(desc="Summary of the code given guiding question") | |
| class RepoSummary(dspy.Signature): | |
| context = dspy.InputField(desc="Python file summaries") | |
| question = dspy.InputField() | |
| answer = dspy.OutputField(desc="Repository summary") |
import transformers
from sentence_transformers import SentenceTransformer
checked_symptoms = ["ból dupy", "jebie mnie w krzyżu"]
reference_symptoms = [["ból lędźwi"], ["ból gardła", "ból dupy"]]
model = SentenceTransformer('sdadas/st-polish-paraphrase-from-distilroberta')
checked_embeddings = model.encode(checked_symptoms)| # https://github.com/exercism/cli/issues/718#issuecomment-1493221436 | |
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| export track="$1" | |
| curl \ |
from llm_rs import AutoModel
#Load the model, define any model you like from the list above as the `model_file`
model = AutoModel.from_pretrained("rustformers/mpt-7b-ggml",model_file="mpt-7b-q4_0-ggjt.bin")import transformers
import torch| version: "3.8" | |
| services: | |
| # Use `docker compose --profile backend-dev up --build --attach-dependencies` to start a database and work and the backend. | |
| # Use `docker compose --profile frontend-dev up --build --attach-dependencies` to start the services needed to work on the frontend. If you want to also run the inference, add a second `--profile inference` argument. | |
| # The profile ci is used by CI automations. (i.e E2E testing) | |
| # This DB is for the FastAPI Backend. |
| from <project_name>.d import function |
| ;; USING CHATGPT IN ORG MODE | |
| ;; how-to | |
| ;; relevant mlutil file - https://github.com/lambdaofgod/mlutil/blob/master/mlutil/chatgpt_api.py | |
| ;; - install mlutil (or copy relevant file somewhere so you can import it easily) | |
| ;; - M-x initialize-chatgpt-code-block | |
| ;; - M-x insert-chatgpt-response-code-block | |
| ;; - C-c C-c - you get the response | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; babel code blocks in org mode |
| # tmux utils | |
| tmux_jupyter() { | |
| cd ~/Projects | |
| tmux new -d -s jupyter | |
| tmux send-keys -t jupyter "jupyter-notebook" Enter | |
| tmux a -t jupyter | |
| } | |