This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import GPTNeoForCausalLM, GPT2Tokenizer | |
# Initialize tokenizer and model | |
tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-2.7B") | |
model = GPTNeoForCausalLM.from_pretrained("EleutherAI/gpt-neo-2.7B") | |
# Example usage | |
text = "Replace with your input text here." | |
# Tokenize input text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Switzerland, | |
Japan, | |
South Korea, | |
Monaco, | |
Finland, | |
Denmark, | |
Austria, | |
Andorra, | |
Liechtenstein, | |
San Marino, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.integrate import quad | |
import sympy as sp | |
# Define the symbolic variable | |
x = sp.Symbol('x') | |
# Define the integrand as a sympy expression | |
integrand = sp.exp(-1j * x) / x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program wait_formula | |
implicit none | |
real :: beta, a, h | |
real, dimension(:), allocatable :: rho | |
complex :: norm_deltaZ | |
complex :: integral1, integral2, integral3 | |
real :: rho_start, rho_end, rho_step | |
real :: rho_current | |
integer :: i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import * | |
from sympy.printing.mathml import mathml | |
init_printing(use_unicode=True) # allow LaTeX printing | |
# independent variables | |
x, y, z = symbols('x y z', real = True) | |
# parameters | |
nu, rho = symbols('nu rho', real = True, constant = True, positive = True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import matplotlib | |
matplotlib.use("agg") | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import meep as mp |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.email 'rezamarzban1987@gmail.com' | |
git config --global user.name 'rezamarzban' | |
git clone https://ACCESS_TOKEN@github.com/rezamarzban/electromagnetic | |
#After making changes | |
git add . | |
git commit -m 'Updated by Reza Marzban' | |
git push |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder